[vlc-devel] [PATCH 04/13] ts: notify the first pcr
Thomas Guillem
thomas at gllm.fr
Wed Aug 21 16:13:55 CEST 2019
---
modules/demux/mpeg/ts.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 93009d487a..31b9b48273 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -2150,6 +2150,9 @@ static int ProbeChunk( demux_t *p_demux, int i_program, bool b_end, stime_t *pi_
else if( b_pcrresult && p_pmt->pcr.i_first == -1 )
{
p_pmt->pcr.i_first = *pi_pcr;
+ es_out_Control( p_demux->out, ES_OUT_SET_FIRST_GROUP_PCR,
+ p_pmt->i_number,
+ FROM_SCALE(p_pmt->pcr.i_first) );
}
else if( p_pmt->pcr.i_first_dts == -1 )
{
@@ -2271,6 +2274,8 @@ static void ProgramSetPCR( demux_t *p_demux, ts_pmt_t *p_pmt, stime_t i_pcr )
if( p_pmt->pcr.i_first == -1 )
{
p_pmt->pcr.i_first = i_pcr; // now seen
+ es_out_Control( p_demux->out, ES_OUT_SET_FIRST_GROUP_PCR, p_pmt->i_number,
+ FROM_SCALE(p_pmt->pcr.i_first) );
}
if ( p_sys->i_pmt_es )
--
2.20.1
More information about the vlc-devel
mailing list