[vlc-devel] commit: xspf: Fix a crash on track elements without a location ( Derk-Jan Hartman )
git version control
git at videolan.org
Thu Jun 25 14:24:06 CEST 2009
vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Thu Jun 25 14:21:53 2009 +0200| [7c2247517587851b22ecb11ba8d88bbdf3dcbdac] | committer: Derk-Jan Hartman
xspf: Fix a crash on track elements without a location
A <track> can have 0 or more <location> elements. VLC doesn't like elements without a uri however, so init an element with vlc://nop. Note also that we currently only support 1 location element per track....
This closes #2891
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7c2247517587851b22ecb11ba8d88bbdf3dcbdac
---
modules/demux/playlist/xspf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/playlist/xspf.c b/modules/demux/playlist/xspf.c
index f6eb165..938ecfe 100644
--- a/modules/demux/playlist/xspf.c
+++ b/modules/demux/playlist/xspf.c
@@ -416,7 +416,7 @@ static bool parse_track_node COMPLEX_INTERFACE
{NULL, UNKNOWN_CONTENT, {NULL} }
};
- input_item_t *p_new_input = input_item_New( p_demux, NULL, NULL );
+ input_item_t *p_new_input = input_item_New( p_demux, "vlc://nop", NULL );
if( !p_new_input )
{
More information about the vlc-devel
mailing list