[vlc-commits] demux: heif: recreate ES instead of restart

Francois Cartegnie git at videolan.org
Mon Nov 19 14:04:51 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 19 13:44:57 2018 +0100| [3c01a57af5d3591e28faed2a9c5db88268b31d93] | committer: Francois Cartegnie

demux: heif: recreate ES instead of restart

Picture format could have changed

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

 modules/demux/mp4/heif.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/demux/mp4/heif.c b/modules/demux/mp4/heif.c
index cb3be7de11..842aa27f1d 100644
--- a/modules/demux/mp4/heif.c
+++ b/modules/demux/mp4/heif.c
@@ -511,10 +511,9 @@ static int DemuxHEIF( demux_t *p_demux )
     es_format_Clean( &p_sys->current.fmt );
     es_format_Copy( &p_sys->current.fmt, &fmt );
     es_format_Clean( &fmt );
-    if( !p_sys->id )
-        p_sys->id = es_out_Add( p_demux->out, &p_sys->current.fmt );
-    else
-        es_out_Control( p_demux->out, ES_OUT_RESTART_ES, p_sys->id );
+    if( p_sys->id )
+        es_out_Del( p_demux->out, p_sys->id );
+    p_sys->id = es_out_Add( p_demux->out, &p_sys->current.fmt );
 
     if( !p_sys->id )
     {



More information about the vlc-commits mailing list