[vlc-commits] [Git][videolan/vlc][master] 2 commits: demux: ts: reinit all known PID on seek
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sun Jul 23 11:26:44 UTC 2023
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
53a73c74 by Francois Cartegnie at 2023-07-23T10:59:20+00:00
demux: ts: reinit all known PID on seek
- - - - -
15eb6905 by Francois Cartegnie at 2023-07-23T10:59:20+00:00
demux: ts: invalidate duplicate detection on seek
- - - - -
1 changed file:
- modules/demux/mpeg/ts.c
Changes:
=====================================
modules/demux/mpeg/ts.c
=====================================
@@ -1956,16 +1956,19 @@ static void ReadyQueuesPostSeek( demux_t *p_demux )
for( int j=0; j<p_pmt->e_streams.i_size; j++ )
{
ts_pid_t *pid = p_pmt->e_streams.p_elems[j];
- ts_stream_t *p_pes = pid->u.p_stream;
+
+ pid->i_cc = 0xff;
+ pid->i_dup = 0;
+ pid->prevpktbytes[0] = 0;
if( pid->type != TYPE_STREAM )
continue;
+ ts_stream_t *p_pes = pid->u.p_stream;
+
for( ts_es_t *p_es = p_pes->p_es; p_es; p_es = p_es->p_next )
p_es->i_next_block_flags |= BLOCK_FLAG_DISCONTINUITY;
- pid->i_cc = 0xff;
- pid->i_dup = 0;
pid->u.p_stream->i_last_dts = -1;
if( pid->u.p_stream->prepcr.p_head )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/a50f9457e239c03efae02f9f173e3d161447d4c1...15eb690505b80e329b15a30ccdd382d1940b5031
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/a50f9457e239c03efae02f9f173e3d161447d4c1...15eb690505b80e329b15a30ccdd382d1940b5031
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list