[vlc-commits] demux: hevc: on exit es delete

Francois Cartegnie git at videolan.org
Wed Dec 16 16:30:36 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 16 15:34:26 2015 +0100| [b906a098bac29b528c1ed3ed96cca07c87fff123] | committer: Francois Cartegnie

demux: hevc: on exit es delete

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

 modules/demux/mpeg/hevc.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/mpeg/hevc.c b/modules/demux/mpeg/hevc.c
index 8063d95..b984d25 100644
--- a/modules/demux/mpeg/hevc.c
+++ b/modules/demux/mpeg/hevc.c
@@ -158,6 +158,9 @@ static void Close( vlc_object_t * p_this )
     demux_t     *p_demux = (demux_t*)p_this;
     demux_sys_t *p_sys = p_demux->p_sys;
 
+    if( p_sys->p_es )
+        es_out_Del( p_demux->out, p_sys->p_es );
+
     demux_PacketizerDestroy( p_sys->p_packetizer );
 
     for( unsigned i=0; i<HEVC_VPS_MAX; i++ )



More information about the vlc-commits mailing list