]> git.sesse.net Git - vlc/commitdiff
TS demux: fix DVB program selection
authorRafaël Carré <funman@videolan.org>
Wed, 11 Feb 2015 21:38:28 +0000 (22:38 +0100)
committerRafaël Carré <funman@videolan.org>
Wed, 11 Feb 2015 21:39:55 +0000 (22:39 +0100)
If the first program of the PAT has no PMT or no ES, we will get stuck forever.
Return from demux probe immediately, to let user select the desired program later.

For example on Astra S19.2E:
dvb:// --dvb-frequency 12551500 --dvb-polarization V --dvb-srate 22000000 --dvb-fec 5/6

modules/demux/ts.c

index fdc2093922910774809d81db19c9d7b1c1b21b7e..35aa6f754c2ba7c079ca642ce445a6f37a92fd82 100644 (file)
@@ -1193,11 +1193,6 @@ static int Open( vlc_object_t *p_this )
     if( p_sys->i_pmt_es == 0 && !p_sys->pid[0].b_seen )
         MissingPATPMTFixup( p_demux );
 
-    while( p_sys->i_pmt_es <= 0 )
-    {
-        if( Demux( p_demux ) != 1 )
-            break;
-    }
     return VLC_SUCCESS;
 }