]> git.sesse.net Git - vlc/commitdiff
mkv.cpp: don't wait for frames that won't be displayed when seeking
authorSteve Lhomme <robux@videolan.org>
Mon, 14 Feb 2005 21:31:18 +0000 (21:31 +0000)
committerSteve Lhomme <robux@videolan.org>
Mon, 14 Feb 2005 21:31:18 +0000 (21:31 +0000)
modules/demux/mkv.cpp

index a4d0cd6eeee776216588e9660d2242d339afeff9..2ddc787354d2f80613775d595f87a9075e7a5a41 100644 (file)
@@ -1358,8 +1358,6 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, mtime_t i_pts,
         if (i_pts < p_sys->i_start_pts)
         {
             p_block->i_pts = -1;
-            p_block->i_dts = -1;
-/*            p_block->i_flags |= BLOCK_FLAG_DISCONTINUITY;*/
         }
         else if( tk.fmt.i_cat != VIDEO_ES )
         {
@@ -1559,7 +1557,7 @@ static int Demux( demux_t *p_demux)
 
         p_sys->i_pts = block->GlobalTimecode() / (mtime_t) 1000;
 
-        if( p_sys->i_pts > 0 )
+        if( p_sys->i_pts > p_sys->i_start_pts  )
         {
             es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_sys->i_pts );
         }