[vlc-commits] demux: au: check es
Francois Cartegnie
git at videolan.org
Thu May 3 10:13:46 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 2 17:13:56 2018 +0200| [ec131e63f3a48e65f7dceaa9b7b9bb06c7e02faa] | committer: Francois Cartegnie
demux: au: check es
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec131e63f3a48e65f7dceaa9b7b9bb06c7e02faa
---
modules/demux/au.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/au.c b/modules/demux/au.c
index 938921707f..7912f3b9fe 100644
--- a/modules/demux/au.c
+++ b/modules/demux/au.c
@@ -324,7 +324,10 @@ static int Demux( demux_t *p_demux )
p_block->i_dts =
p_block->i_pts = VLC_TS_0 + p_sys->i_time;
- 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 );
p_sys->i_time += p_sys->i_frame_length;
More information about the vlc-commits
mailing list