Commit 7687aa89 authored by Rafaël Carré's avatar Rafaël Carré

kate: use VLC_TS_INVALID (refs #3135)

parent 9ed75485
...@@ -371,7 +371,7 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -371,7 +371,7 @@ static int OpenDecoder( vlc_object_t *p_this )
p_sys->b_packetizer = false; p_sys->b_packetizer = false;
#endif #endif
p_sys->b_ready = false; p_sys->b_ready = false;
p_sys->i_pts = 0; p_sys->i_pts =
p_sys->i_max_stop = VLC_TS_INVALID; p_sys->i_max_stop = VLC_TS_INVALID;
kate_comment_init( &p_sys->kc ); kate_comment_init( &p_sys->kc );
...@@ -645,7 +645,7 @@ static subpicture_t *ProcessPacket( decoder_t *p_dec, kate_packet *p_kp, ...@@ -645,7 +645,7 @@ static subpicture_t *ProcessPacket( decoder_t *p_dec, kate_packet *p_kp,
subpicture_t *p_buf = NULL; subpicture_t *p_buf = NULL;
/* Date management */ /* 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; p_sys->i_pts = p_block->i_pts;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment