]> git.sesse.net Git - vlc/commitdiff
* modules/demux/ts.c: Fixed a side-effect when p_sys->b_dvb_control has
authorChristophe Massiot <massiot@videolan.org>
Sun, 14 Aug 2005 13:04:57 +0000 (13:04 +0000)
committerChristophe Massiot <massiot@videolan.org>
Sun, 14 Aug 2005 13:04:57 +0000 (13:04 +0000)
   not been set to VLC_FALSE yet, the program number is not specified,
   and we're reading a PMT.

modules/demux/ts.c

index 448292c1d9f01e16ea09d55561ee09ab9fe9b8df..9b9360ac3ecc78aaa96d1f7b7be880dbbbc38814 100644 (file)
@@ -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;
 
     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;
     if ( p_sys->i_dvb_program == i_pgrm ) return VLC_TRUE;