]> git.sesse.net Git - vlc/commitdiff
demux: ts: don't delay es creation if there's access control
authorFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 17 Feb 2015 14:34:29 +0000 (15:34 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 20 Feb 2015 18:59:32 +0000 (19:59 +0100)
modules/demux/ts.c

index de1022f26fd4870276c533a512c8af02eb1d3a53..2532c88d8b6b156cd8dbde98d115c9ef26c74e33 100644 (file)
@@ -1082,7 +1082,7 @@ static int Open( vlc_object_t *p_this )
     /* Init PMT array */
     TAB_INIT( p_sys->i_pmt, p_sys->pmt );
     p_sys->i_pmt_es = 0;
-    p_sys->b_delay_es_creation = true;
+    p_sys->b_delay_es_creation = !p_sys->b_access_control;
 
     /* Read config */
     p_sys->b_es_id_pid = var_CreateGetBool( p_demux, "ts-es-id-pid" );