[vlc-commits] ogg: don't call es_out_Send with NULL id

Thomas Guillem git at videolan.org
Sun Oct 15 21:52:48 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Oct 13 12:00:38 2017 +0200| [2f4ebb1dfe478a2945c2ccf617ae86bd89a7f997] | committer: Thomas Guillem

ogg: don't call es_out_Send with NULL id

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

 modules/demux/ogg.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index bb809a6832..64e2242597 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1171,7 +1171,10 @@ static void Ogg_SendOrQueueBlocks( demux_t *p_demux, logical_stream_t *p_stream,
         {
             DemuxDebug( msg_Dbg( p_demux, "block sent directly > pts %"PRId64" spcr %"PRId64" pcr %"PRId64,
                      p_block->i_pts, p_stream->i_pcr, p_ogg->i_pcr ) );
-            es_out_Send( p_demux->out, p_stream->p_es, p_block );
+            if ( p_stream->p_es )
+                es_out_Send( p_demux->out, p_stream->p_es, p_block );
+            else
+                block_Release( p_block );
         }
     }
 }



More information about the vlc-commits mailing list