[vlc-devel] [PATCH 3/4] ogg: use es_out_Replace

Thomas Guillem thomas at gllm.fr
Tue Jul 17 18:57:35 CEST 2018


---
 modules/demux/ogg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 4fc2d28a0a..5c130d8ce0 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -2113,8 +2113,8 @@ static void Ogg_CreateES( demux_t *p_demux )
                 p_old_stream = NULL;
                 if ( b_resetdecoder )
                 {
-                    es_out_Control( p_demux->out, ES_OUT_SET_ES_FMT,
-                                    p_stream->p_es, &p_stream->fmt );
+                    p_stream->p_es = es_out_Replace( p_demux->out, p_stream->p_es,
+                                                     &p_stream->fmt );
                 }
             }
             else
-- 
2.18.0



More information about the vlc-devel mailing list