}
}
- if( DVBProgramIsSelected( p_demux, prg->i_number ) )
+ if( DVBProgramIsSelected( p_demux, prg->i_number )
+ && (pid->es->id != NULL || p_sys->b_udp_out) )
{
/* Set demux filter */
stream_Control( p_demux->s, STREAM_CONTROL_ACCESS,
if( p_sys->i_dvb_program == 0 )
p_sys->i_dvb_program = p_program->i_number;
- if( stream_Control( p_demux->s, STREAM_CONTROL_ACCESS, ACCESS_SET_PRIVATE_ID_STATE, p_program->i_pid, VLC_TRUE ) )
+ if( stream_Control( p_demux->s, STREAM_CONTROL_ACCESS,
+ ACCESS_SET_PRIVATE_ID_STATE,
+ p_program->i_pid, VLC_TRUE ) )
p_sys->b_dvb_control = VLC_FALSE;
}
}