[vlc-commits] demux: image: check es

Francois Cartegnie git at videolan.org
Thu May 3 10:13:55 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May  2 17:36:25 2018 +0200| [f501bab97947c6628cbd31ef43433fe34566a5da] | committer: Francois Cartegnie

demux: image: check es

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f501bab97947c6628cbd31ef43433fe34566a5da
---

 modules/demux/image.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/demux/image.c b/modules/demux/image.c
index 4cc9fddb1b..6c9bbb7f4a 100644
--- a/modules/demux/image.c
+++ b/modules/demux/image.c
@@ -222,7 +222,10 @@ static int Demux(demux_t *demux)
         data->i_dts =
         data->i_pts = VLC_TS_0 + pts;
         es_out_SetPCR(demux->out, data->i_pts);
-        es_out_Send(demux->out, sys->es, data);
+        if(sys->es)
+            es_out_Send(demux->out, sys->es, data);
+        else
+            block_Release(data);
 
         date_Increment(&sys->pts, 1);
     }



More information about the vlc-commits mailing list