]> git.sesse.net Git - vlc/commitdiff
demux: ts: gather data for uncreated es
authorFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 17 Mar 2015 21:38:56 +0000 (22:38 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 18 Mar 2015 12:03:04 +0000 (13:03 +0100)
should go to pre es queue otherwise first frames/gop are dropped

modules/demux/ts.c

index 9db96675fc75ad1fe9ee309a0f7d6ffa94f1dc51..9b219aaa176c2262b88d93080053a1945774a0b5 100644 (file)
@@ -2347,7 +2347,7 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid, block_t *p_pes )
             if( p_pmt->pcr.i_first == -1 ) /* Not seen yet */
                 PCRFixHandle( p_demux, p_pmt, p_block );
 
-            if( p_pmt->pcr.i_current > -1 || p_pmt->pcr.b_disable )
+            if( pid->u.p_pes->es.id && (p_pmt->pcr.i_current > -1 || p_pmt->pcr.b_disable) )
             {
                 if( pid->u.p_pes->p_prepcr_outqueue )
                 {
@@ -3179,7 +3179,7 @@ static bool GatherData( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
 
     PCRHandle( p_demux, pid, p_bk );
 
-    if( i_skip >= 188 || pid->u.p_pes->es.id == NULL )
+    if( i_skip >= 188 )
     {
         block_Release( p_bk );
         return i_ret;