]> git.sesse.net Git - vlc/commitdiff
ts: fix --ts-extra-pmt.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 21 Jan 2005 17:02:39 +0000 (17:02 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 21 Jan 2005 17:02:39 +0000 (17:02 +0000)
modules/demux/ts.c

index a8313e145c78940d50bd679cf091ed52bd04d6b1..7888894ae757115e1c23dc372e51f66bf0941cb0 100644 (file)
@@ -477,6 +477,8 @@ static int Open( vlc_object_t *p_this )
 
             msg_Dbg( p_demux, "extra pmt specified (pid=%d)", i_pid );
             PIDInit( pmt, VLC_TRUE, NULL );
+            pmt->psi->i_prg = 1;
+            pmt->psi->prg = malloc( sizeof(ts_prg_psi_t) );
             /* FIXME we should also ask for a number */
             pmt->psi->prg[0]->handle =
                 dvbpsi_AttachPMT( 1, (dvbpsi_pmt_callback)PMTCallBack,