[vlc-commits] demux: caf: check es
Francois Cartegnie
git at videolan.org
Thu May 3 10:13:50 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 2 17:19:51 2018 +0200| [f7fa52400c3716e1a4b70dc44ec83e22f60de53c] | committer: Francois Cartegnie
demux: caf: check es
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7fa52400c3716e1a4b70dc44ec83e22f60de53c
---
modules/demux/caf.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/caf.c b/modules/demux/caf.c
index edeb00c695..fca08466fb 100644
--- a/modules/demux/caf.c
+++ b/modules/demux/caf.c
@@ -1005,7 +1005,10 @@ static int Demux( demux_t *p_demux )
/* set PCR */
es_out_SetPCR( p_demux->out, p_block->i_pts );
- 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 VLC_DEMUXER_SUCCESS;
}
More information about the vlc-commits
mailing list