[vlc-commits] demux/playlist: itml: do not halt parsing on unsupported track

Filip Roséen git at videolan.org
Mon May 22 00:15:57 CEST 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Sun May 21 20:49:04 2017 +0200| [30d66a77a5c3024da1cc6971e0dc22923252665f] | committer: Marvin Scholz

demux/playlist: itml: do not halt parsing on unsupported track

This change makes it so that a track without <key>Location</key> is
simply ignored, instead of it preventing further tracks within the
playlist to be parsed (as we should of course import as many tracks as
we possibly can, even if there are some we simply cannot handle).

Signed-off-by: Marvin Scholz <epirat07 at gmail.com>

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

 modules/demux/playlist/itml.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/playlist/itml.c b/modules/demux/playlist/itml.c
index 5f636262f1..5a5eb3b048 100644
--- a/modules/demux/playlist/itml.c
+++ b/modules/demux/playlist/itml.c
@@ -326,9 +326,9 @@ static bool parse_track_dict( demux_t *p_demux, input_item_node_t *p_input_node,
 
     if( !p_track->location )
     {
-        msg_Err( p_demux, "Track needs Location" );
+        msg_Warn( p_demux, "ignoring track without Location entry" );
         free_track( p_track );
-        return false;
+        return true;
     }
 
     msg_Info( p_demux, "Adding '%s'", p_track->location );



More information about the vlc-commits mailing list