[vlc-commits] demux: aiff: check p_es

Francois Cartegnie git at videolan.org
Thu May 3 10:13:44 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May  2 17:10:42 2018 +0200| [53a1f9581bdadb840f1c50289b131cfe8159fa00] | committer: Francois Cartegnie

demux: aiff: check p_es

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

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

diff --git a/modules/demux/aiff.c b/modules/demux/aiff.c
index d23b5e150a..a7c63ceae2 100644
--- a/modules/demux/aiff.c
+++ b/modules/demux/aiff.c
@@ -269,7 +269,11 @@ static int Demux( demux_t *p_demux )
                      p_sys->fmt.audio.i_rate;
 
     /* */
-    es_out_Send( p_demux->out, p_sys->es, p_block );
+    if( p_sys->es )
+        es_out_Send( p_demux->out, p_sys->es, p_block );
+    else
+        block_Release( p_block );
+
     return 1;
 }
 



More information about the vlc-commits mailing list