]> git.sesse.net Git - vlc/commitdiff
Forwardport [15492]
authorClément Stenac <zorglub@videolan.org>
Mon, 1 May 2006 08:34:27 +0000 (08:34 +0000)
committerClément Stenac <zorglub@videolan.org>
Mon, 1 May 2006 08:34:27 +0000 (08:34 +0000)
modules/mux/mpeg/ts.c

index a77853fcb0f927d430cebea8a89b3cd2157e6411..59cfc9d77173d2be545e5f0b5d1cdd0f9bd4a64d 100644 (file)
@@ -1244,6 +1244,11 @@ static int Mux( sout_mux_t *p_mux )
 
     if( p_sys->i_pcr_pid == 0x1fff )
     {
+        int i;
+        for( i = 0; i < p_mux->i_nb_inputs; i++ )
+        {
+            block_FifoEmpty( p_mux->pp_inputs[i]->p_fifo );
+        }
         msg_Dbg( p_mux, "waiting for PCR streams" );
         msleep( 1000 );
         return VLC_SUCCESS;