Commit f35dfa61 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ts: check extra es for pid filtering

main es might not have been selected (teletext extra es)
parent 98ec9654
...@@ -1383,8 +1383,18 @@ static void UpdatePESFilters( demux_t *p_demux, bool b_all ) ...@@ -1383,8 +1383,18 @@ static void UpdatePESFilters( demux_t *p_demux, bool b_all )
ts_pid_t *espid = p_pmt->e_streams.p_elems[j]; ts_pid_t *espid = p_pmt->e_streams.p_elems[j];
bool b_stream_selected = b_program_selected; bool b_stream_selected = b_program_selected;
if( b_program_selected && !b_all && espid->u.p_pes->es.id ) if( b_program_selected && !b_all && espid->u.p_pes->es.id )
{
es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE, es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE,
espid->u.p_pes->es.id, &b_stream_selected ); espid->u.p_pes->es.id, &b_stream_selected );
for( int k=0; !b_stream_selected &&
k< espid->u.p_pes->extra_es.i_size; k++ )
{
if( espid->u.p_pes->extra_es.p_elems[k]->id )
es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE,
espid->u.p_pes->extra_es.p_elems[k]->id,
&b_stream_selected );
}
}
if( espid->u.p_pes->es.fmt.i_cat == UNKNOWN_ES ) if( espid->u.p_pes->es.fmt.i_cat == UNKNOWN_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