Commit 8902488b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XSPF: fix NULL dereference on empty <location>

parent 8bf4be30
......@@ -538,6 +538,9 @@ static bool parse_track_node COMPLEX_INTERFACE
/* special case: location */
if( !strcmp( p_handler->name, "location" ) )
{
if( psz_value == NULL )
input_item_SetURI( p_new_input, "vlc://nop" );
else
/* FIXME: This is broken. Scheme-relative (//...) locations
* and anchors (#...) are not resolved correctly. Also,
* host-relative (/...) and directory-relative locations
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment