vlc | branch: master | Francois Cartegnie <[email protected]> | Wed May 2 17:21:39 2018 +0200| [8da02cef6e99821daae38e4d5a75dd816fe54c1b] | committer: Francois Cartegnie
demux: cdg: check es > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8da02cef6e99821daae38e4d5a75dd816fe54c1b --- modules/demux/cdg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/demux/cdg.c b/modules/demux/cdg.c index 058f243d74..2cbb17b8c3 100644 --- a/modules/demux/cdg.c +++ b/modules/demux/cdg.c @@ -145,7 +145,10 @@ static int Demux( demux_t *p_demux ) es_out_SetPCR( p_demux->out, p_block->i_pts ); - es_out_Send( p_demux->out, p_sys->p_es, p_block ); + if( p_sys->p_es ) + es_out_Send( p_demux->out, p_sys->p_es, p_block ); + else + block_Release( p_sys->p_es ); return VLC_DEMUXER_SUCCESS; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
