[vlc-commits] packetizer: mlp: flag discontinuity on timebase change
Francois Cartegnie
git at videolan.org
Wed Oct 26 19:07:05 CEST 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 26 15:52:51 2016 +0200| [81703617662aa32a173d5758bf7327a8502c1541] | committer: Francois Cartegnie
packetizer: mlp: flag discontinuity on timebase change
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=81703617662aa32a173d5758bf7327a8502c1541
---
modules/packetizer/mlp.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/packetizer/mlp.c b/modules/packetizer/mlp.c
index 6cfbf9b..ba2a843 100644
--- a/modules/packetizer/mlp.c
+++ b/modules/packetizer/mlp.c
@@ -334,6 +334,8 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
if( p_sys->i_pts > VLC_TS_INVALID &&
p_sys->i_pts != date_Get( &p_sys->end_date ) )
{
+ if( date_Get( &p_sys->end_date ) != VLC_TS_INVALID )
+ p_sys->b_discontinuity = true;
date_Set( &p_sys->end_date, p_sys->i_pts );
}
p_sys->i_state = STATE_HEADER;
@@ -428,6 +430,8 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
const mtime_t i_end_date = date_Get( &p_sys->end_date );
date_Init( &p_sys->end_date, p_sys->mlp.i_rate, 1 );
date_Set( &p_sys->end_date, i_end_date );
+ if( i_end_date != VLC_TS_INVALID )
+ p_sys->b_discontinuity = true;
}
}
More information about the vlc-commits
mailing list