]> git.sesse.net Git - vlc/commitdiff
kate: use VLC_TS_INVALID (refs #3135)
authorRafaël Carré <rafael.carre@gmail.com>
Mon, 7 Dec 2009 07:40:10 +0000 (08:40 +0100)
committerRafaël Carré <rafael.carre@gmail.com>
Mon, 7 Dec 2009 07:40:10 +0000 (08:40 +0100)
modules/codec/kate.c

index c06c5cd6df40d5c33e03f91cd800ae1b6327753b..3dee69247d5a1233ee7669f4cc60dbd1a0c95135 100644 (file)
@@ -371,7 +371,7 @@ static int OpenDecoder( vlc_object_t *p_this )
     p_sys->b_packetizer = false;
 #endif
     p_sys->b_ready = false;
-    p_sys->i_pts = 0;
+    p_sys->i_pts =
     p_sys->i_max_stop = VLC_TS_INVALID;
 
     kate_comment_init( &p_sys->kc );
@@ -645,7 +645,7 @@ static subpicture_t *ProcessPacket( decoder_t *p_dec, kate_packet *p_kp,
     subpicture_t *p_buf = NULL;
 
     /* Date management */
-    if( p_block->i_pts > 0 && p_block->i_pts != p_sys->i_pts )
+    if( p_block->i_pts > VLC_TS_INVALID && p_block->i_pts != p_sys->i_pts )
     {
         p_sys->i_pts = p_block->i_pts;
     }