[vlc-commits] demux: ogg: don't save unused stream on chained streams

Francois Cartegnie git at videolan.org
Mon Apr 23 20:17:47 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at 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 );



More information about the vlc-commits mailing list