vlc | branch: master | Francois Cartegnie <[email protected]> | 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" );
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to