[vlc-commits] demux: mod: check es
Francois Cartegnie
git at videolan.org
Thu May 3 10:13:59 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 2 18:30:57 2018 +0200| [d83aaffcfcea3b8e50c5546661aacd0072e14422] | committer: Francois Cartegnie
demux: mod: check es
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d83aaffcfcea3b8e50c5546661aacd0072e14422
---
modules/demux/mod.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/mod.c b/modules/demux/mod.c
index d15cbdad97..07a223d901 100644
--- a/modules/demux/mod.c
+++ b/modules/demux/mod.c
@@ -285,7 +285,10 @@ static int Demux( demux_t *p_demux )
es_out_SetPCR( p_demux->out, p_frame->i_pts );
/* Send data */
- es_out_Send( p_demux->out, p_sys->es, p_frame );
+ if( p_sys->es )
+ es_out_Send( p_demux->out, p_sys->es, p_frame );
+ else
+ block_Release( p_frame );
date_Increment( &p_sys->pts, i_read / i_bk );
More information about the vlc-commits
mailing list