[vlc-devel] commit: kate: use VLC_TS_INVALID (refs #3135) ( Rafaël Carré )
git version control
git at videolan.org
Mon Dec 7 08:50:42 CET 2009
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Mon Dec 7 08:40:10 2009 +0100| [7687aa895a8377caaadc0fa10558bf0afb1ae917] | committer: Rafaël Carré
kate: use VLC_TS_INVALID (refs #3135)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7687aa895a8377caaadc0fa10558bf0afb1ae917
---
modules/codec/kate.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/kate.c b/modules/codec/kate.c
index c06c5cd..3dee692 100644
--- a/modules/codec/kate.c
+++ b/modules/codec/kate.c
@@ -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;
}
More information about the vlc-devel
mailing list