[vlc-commits] demux: ogg: fix old stream format reuse check

Francois Cartegnie git at videolan.org
Mon Apr 6 18:56:04 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Apr  6 18:40:03 2015 +0200| [751ecf1c78191151e27f898bd58345744f35bead] | committer: Francois Cartegnie

demux: ogg: fix old stream format reuse check

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

 modules/demux/ogg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index f23bfdd..1935c26 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -2051,8 +2051,8 @@ static void Ogg_CreateES( demux_t *p_demux )
                 p_stream->b_reinit = false;
                 p_stream->b_initializing = false;
                 p_stream->i_pre_skip = 0;
-                bool b_resetdecoder = Ogg_LogicalStreamResetEsFormat( p_demux, p_stream );
                 es_format_Copy( &p_stream->fmt_old, &p_old_stream->fmt );
+                bool b_resetdecoder = Ogg_LogicalStreamResetEsFormat( p_demux, p_stream );
 
                 p_old_stream->p_es = NULL;
                 p_old_stream = NULL;



More information about the vlc-commits mailing list