vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Mon Apr 23 
19:30:44 2018 +0200| [a5e50aa4d13d25039ed48ce84a829c8e0e144ab7] | committer: 
Francois Cartegnie

demux: ogg: don't save unused stream on chained streams

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

 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 12c962d26d..912b41ee25 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -309,7 +309,7 @@ static int Demux( demux_t * p_demux )
 
             /* We keep the ES to try reusing it in Ogg_BeginningOfStream
              * only 1 ES is supported (common case for ogg web radio) */
-            if( p_sys->i_streams == 1 )
+            if( p_sys->i_streams == 1 && p_sys->pp_stream[0]->p_es )
             {
                 p_sys->p_old_stream = p_sys->pp_stream[0];
                 TAB_CLEAN( p_sys->i_streams, p_sys->pp_stream );

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to