[vlc-devel] [PATCH 12/18] demux:ogg: no need to change the es_format_t before a copy

Steve Lhomme robux4 at videolabs.io
Mon Jul 17 16:33:18 CEST 2017


But we do need to clean the previous value before a copy.
---
 modules/demux/ogg.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 896f34615b..1516283eb3 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -2117,8 +2117,7 @@ static void Ogg_CreateES( demux_t *p_demux )
                 p_stream->b_reinit = false;
                 p_stream->b_initializing = false;
                 p_stream->i_pre_skip = 0;
-                es_format_Change( &p_stream->fmt_old, p_old_stream->fmt.i_cat,
-                                                      p_old_stream->fmt.i_codec );
+                es_format_Clean( &p_stream->fmt_old );
                 es_format_Copy( &p_stream->fmt_old, &p_old_stream->fmt );
                 bool b_resetdecoder = Ogg_LogicalStreamResetEsFormat( p_demux, p_stream );
 
-- 
2.12.1



More information about the vlc-devel mailing list