]> git.sesse.net Git - vlc/commitdiff
* src/input/input_dec.c: compilation fix.
authorGildas Bazin <gbazin@videolan.org>
Wed, 25 Feb 2004 18:47:02 +0000 (18:47 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 25 Feb 2004 18:47:02 +0000 (18:47 +0000)
src/input/input_dec.c

index 88b7eec03398dcedd1cc8f2681b5dc234b309f50..3d7ea66028adb20463c667975395882739eb2f5f 100644 (file)
@@ -2,7 +2,7 @@
  * input_dec.c: Functions for the management of decoders
  *****************************************************************************
  * Copyright (C) 1999-2004 VideoLAN
- * $Id: input_dec.c,v 1.91 2004/02/25 12:38:33 fenrir Exp $
+ * $Id: input_dec.c,v 1.92 2004/02/25 18:47:02 gbazin Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Gildas Bazin <gbazin@netcourrier.com>
@@ -257,7 +257,8 @@ void input_DecodePES( decoder_t * p_dec, pes_packet_t * p_pes )
             }
             p_block->i_pts = p_pes->i_pts;
             p_block->i_dts = p_pes->i_dts;
-            p_block->b_discontinuity = p_pes->b_discontinuity;
+            if( p_pes->b_discontinuity )
+                p_block->i_flags |= BLOCK_FLAG_DISCONTINUITY;
             p_block->i_rate = p_pes->i_rate;
 
             input_DecodeBlock( p_dec, p_block );
@@ -306,7 +307,7 @@ static void input_NullPacket( input_thread_t * p_input,
     if( p_block )
     {
         memset( p_block->p_buffer, 0, PADDING_PACKET_SIZE );
-        p_block->b_discontinuity = 1;
+        p_block->i_flags |= BLOCK_FLAG_DISCONTINUITY;
 
         block_FifoPut( p_es->p_dec->p_owner->p_fifo, p_block );
     }