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

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


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

ogg: Don't reuse a stream without ES

(cherry picked from commit 03ada38812557860ebcc10d5cc27ca7190f23ebc)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 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 0964a0118c..8d5bf8fca2 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -2150,7 +2150,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