]> git.sesse.net Git - vlc/commitdiff
mkv.cpp: fix duration for text subs
authorSteve Lhomme <robux@videolan.org>
Mon, 16 May 2005 16:00:46 +0000 (16:00 +0000)
committerSteve Lhomme <robux@videolan.org>
Mon, 16 May 2005 16:00:46 +0000 (16:00 +0000)
modules/demux/mkv.cpp

index 268579666867d72970d118a8a74476fe5952db70..ead249ba5c1c71c70efa39ef6b11c118a623300c 100644 (file)
@@ -1859,7 +1859,7 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, mtime_t i_pts,
             p_block->i_pts = 0;
         }
 
-        if ( strcmp( tk->psz_codec, "S_VOBSUB" ) )
+        if( tk->fmt.i_cat == SPU_ES && strcmp( tk->psz_codec, "S_VOBSUB" ) )
         {
             p_block->i_length = i_duration * 1000;
         }