Commit 5599aa05 authored by Christophe Massiot's avatar Christophe Massiot
Browse files

* modules/demux/ts.c: Fixed a side-effect when p_sys->b_dvb_control has

   not been set to VLC_FALSE yet, the program number is not specified,
   and we're reading a PMT.
parent 97a6784f
...@@ -2247,7 +2247,8 @@ static vlc_bool_t DVBProgramIsSelected( demux_t *p_demux, uint16_t i_pgrm ) ...@@ -2247,7 +2247,8 @@ static vlc_bool_t DVBProgramIsSelected( demux_t *p_demux, uint16_t i_pgrm )
demux_sys_t *p_sys = p_demux->p_sys; demux_sys_t *p_sys = p_demux->p_sys;
if ( !p_sys->b_dvb_control ) return VLC_FALSE; if ( !p_sys->b_dvb_control ) return VLC_FALSE;
if ( p_sys->i_dvb_program == -1 && p_sys->p_programs_list == NULL ) if ( (p_sys->i_dvb_program == -1 && p_sys->p_programs_list == NULL)
|| p_sys->i_dvb_program == 0 )
return VLC_TRUE; return VLC_TRUE;
if ( p_sys->i_dvb_program == i_pgrm ) return VLC_TRUE; if ( p_sys->i_dvb_program == i_pgrm ) return VLC_TRUE;
......
Supports Markdown
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