Commit b42a03ff authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ts: set filter only after pcr repicking

parent 994b93c5
......@@ -1700,8 +1700,6 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
PIDRelease( p_demux, pid_to_decref.p_elems[i] );
ARRAY_RESET( pid_to_decref );
UpdatePESFilters( p_demux, p_sys->b_es_all );
if( !p_sys->b_trust_pcr )
{
int i_cand = FindPCRCandidate( p_pmt );
......@@ -1711,6 +1709,8 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_dvbpsipmt )
p_pmt->i_number, i_cand );
}
UpdatePESFilters( p_demux, p_sys->b_es_all );
/* Probe Boundaries */
if( p_sys->b_canfastseek && p_pmt->i_last_dts == -1 )
{
......
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