]> git.sesse.net Git - vlc/commitdiff
demux: ogg: remove discontinuity flag
authorFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 27 Dec 2013 16:16:29 +0000 (17:16 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Mon, 30 Dec 2013 14:40:36 +0000 (15:40 +0100)
reused decoders won't need it.

modules/demux/ogg.c
modules/demux/ogg.h

index 099b6ab42df9efc28dfca2b62e214d501e762fb7..b11a82e2d1b95195905a0aa8510d1db9337eb454 100644 (file)
@@ -1252,11 +1252,6 @@ static void Ogg_DecodePacket( demux_t *p_demux,
             p_block->i_buffer = 0;
     }
 
-    if ( p_stream->b_reusing )
-    {
-        p_stream->b_reusing = false;
-        p_block->i_flags |= BLOCK_FLAG_DISCONTINUITY;
-    }
 
     if( p_stream->fmt.i_codec == VLC_CODEC_TARKIN )
     {
@@ -1829,7 +1824,6 @@ static void Ogg_CreateES( demux_t *p_demux )
                 p_stream->b_finished = false;
                 p_stream->b_reinit = false;
                 p_stream->b_initializing = false;
-                p_stream->b_reusing = true;
                 es_format_Copy( &p_stream->fmt_old, &p_old_stream->fmt );
 
                 p_old_stream->p_es = NULL;
index fa1d3e5f46324d03741630c6965a7a86bed6c240..3ec4d24b70a344f923990bedb74187f26991db13 100644 (file)
@@ -74,7 +74,6 @@ typedef struct logical_stream_s
     bool b_initializing;
     bool b_finished;
     bool b_reinit;
-    bool b_reusing;
     bool b_oggds;
     int i_granule_shift;