[vlc-commits] demux: mjpeg: check es
Francois Cartegnie
git at videolan.org
Thu May 3 10:13:57 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 2 17:52:29 2018 +0200| [5cf74ed881aa32d34839d933bc80e467aa3c303d] | committer: Francois Cartegnie
demux: mjpeg: check es
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5cf74ed881aa32d34839d933bc80e467aa3c303d
---
modules/demux/mjpeg.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/demux/mjpeg.c b/modules/demux/mjpeg.c
index 8b0ef8283f..ee3d4e21a8 100644
--- a/modules/demux/mjpeg.c
+++ b/modules/demux/mjpeg.c
@@ -281,7 +281,10 @@ static int SendBlock( demux_t *p_demux, int i )
/* set PCR */
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 );
if( p_sys->b_still )
p_sys->i_still_end = mdate() + p_sys->i_frame_length;
More information about the vlc-commits
mailing list