[vlc-commits] mp4: use ES_OUT_POST_SUBNODE

Rémi Denis-Courmont git at videolan.org
Sun Jun 4 18:25:41 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jun  4 19:17:58 2017 +0300| [84e9b6e6610391f41189aa193412630e5ec944ce] | committer: Rémi Denis-Courmont

mp4: use ES_OUT_POST_SUBNODE

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

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

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index c8b087cf6c..b2062feff4 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -870,7 +870,10 @@ static int Open( vlc_object_t * p_this )
             }
             free( psz_ref );
         }
-        input_item_node_PostAndDelete( p_subitems );
+
+        /* FIXME: create a stream_filter sub-module for this */
+        if (es_out_Control(p_demux->out, ES_OUT_POST_SUBNODE, p_subitems))
+            input_item_node_Delete(p_subitems);
     }
 
     if( !(p_mvhd = MP4_BoxGet( p_sys->p_root, "/moov/mvhd" ) ) )



More information about the vlc-commits mailing list