Commit 9acc7735 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ts: really fix #14257

We need to unselect missing PID on PMT update as some
providers add overlapping delay to the last packet of
prev pid.

reverts commit 50accb82
parent ba19bb5e
......@@ -5392,22 +5392,6 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
} else dvbpsi_pmt_delete( p_dvbpsipmt );
}
/* see es_out.c:2045 */
for( int i = 0; i < old_es_rm.i_size; i++ )
{
bool b_reset = false;
if( old_es_rm.p_elems[i]->u.p_pes->es.id )
{
es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE,
old_es_rm.p_elems[i]->u.p_pes->es.id, &b_reset );
}
if( b_reset )
{
es_out_Control( p_demux->out, ES_OUT_RESET_PCR );
break;
}
}
/* Decref or clean now unused es */
for( int i = 0; i < old_es_rm.i_size; i++ )
PIDRelease( p_demux, old_es_rm.p_elems[i] );
......@@ -5667,6 +5651,8 @@ static void ts_pes_Del( demux_t *p_demux, ts_pes_t *pes )
{
if( pes->es.id )
{
/* Ensure we don't wait for overlap hacks #14257 */
es_out_Control( p_demux->out, ES_OUT_SET_ES_STATE, pes->es.id, false );
es_out_Del( p_demux->out, pes->es.id );
p_demux->p_sys->i_pmt_es--;
}
......
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