[vlc-commits] ogg: Don't reuse a stream without ES

Hugo Beauzée-Luyssen git at videolan.org
Wed Apr 18 12:23:34 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Apr 18 12:15:13 2018 +0200| [03ada38812557860ebcc10d5cc27ca7190f23ebc] | committer: Hugo Beauzée-Luyssen

ogg: Don't reuse a stream without ES

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

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

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index ff2610d1e5..c900f92a6c 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -2164,7 +2164,8 @@ static void Ogg_CreateES( demux_t *p_demux )
             /* Try first to reuse an old ES */
             if( p_old_stream &&
                 p_old_stream->fmt.i_cat == p_stream->fmt.i_cat &&
-                p_old_stream->fmt.i_codec == p_stream->fmt.i_codec )
+                p_old_stream->fmt.i_codec == p_stream->fmt.i_codec &&
+                p_old_stream->p_es != NULL )
             {
                 msg_Dbg( p_demux, "will reuse old stream to avoid glitch" );
 



More information about the vlc-commits mailing list