[vlc-commits] demux: ogg: remove discontinuity flag

Francois Cartegnie git at videolan.org
Mon Dec 30 15:42:10 CET 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Dec 27 17:16:29 2013 +0100| [f5d0c4b6eecef54bc1268f82a58bef61293efb70] | committer: Francois Cartegnie

demux: ogg: remove discontinuity flag

reused decoders won't need it.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f5d0c4b6eecef54bc1268f82a58bef61293efb70
---

 modules/demux/ogg.c |    6 ------
 modules/demux/ogg.h |    1 -
 2 files changed, 7 deletions(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 099b6ab..b11a82e 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -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;
diff --git a/modules/demux/ogg.h b/modules/demux/ogg.h
index fa1d3e5..3ec4d24 100644
--- a/modules/demux/ogg.h
+++ b/modules/demux/ogg.h
@@ -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;
 



More information about the vlc-commits mailing list