[vlc-commits] demux: ogg: don't create es for finished streams.

Francois Cartegnie git at videolan.org
Mon Dec 30 15:42:11 CET 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Dec 30 14:14:28 2013 +0100| [689ac6f3ef9f682767edb35e3b4914bfa300cb8a] | committer: Francois Cartegnie

demux: ogg: don't create es for finished streams.

Should prevent presenting skeleton in es

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

 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 1b5a414..5581381 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -596,6 +596,7 @@ static logical_stream_t * Ogg_GetSelectedStream( demux_t *p_demux )
     for( int i=0; i<p_sys->i_streams; i++ )
     {
         logical_stream_t *p_candidate = p_sys->pp_stream[i];
+        if ( !p_candidate->p_es ) continue;
 
         bool b_selected = false;
         es_out_Control( p_demux->out, ES_OUT_GET_ES_STATE,
@@ -1821,7 +1822,7 @@ static void Ogg_CreateES( demux_t *p_demux )
     {
         logical_stream_t *p_stream = p_ogg->pp_stream[i_stream];
 
-        if ( p_stream->p_es == NULL )
+        if ( p_stream->p_es == NULL && !p_stream->b_finished )
         {
             /* Better be safe than sorry when possible with ogm */
             if( p_stream->fmt.i_codec == VLC_CODEC_MPGA ||



More information about the vlc-commits mailing list