[vlc-commits] demux: ogg: don't reuse streams without es

Francois Cartegnie git at videolan.org
Tue Nov 6 09:11:44 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov  6 10:01:37 2018 +0200| [2120c5961e2a6c54bcf2bde7b18ecf1924ea8352] | committer: Francois Cartegnie

demux: ogg: don't reuse streams without es

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

 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 6e165962b5..f4601d0007 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -2096,7 +2096,7 @@ static void Ogg_CreateES( demux_t *p_demux )
             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->p_es != NULL )
+                p_old_stream->p_es != NULL && p_stream->p_es != NULL )
             {
                 msg_Dbg( p_demux, "will reuse old stream to avoid glitch" );
 



More information about the vlc-commits mailing list