Commit 8f8d7e70 authored by Alexis Ballier's avatar Alexis Ballier Committed by Ilkka Ollakka

Fix [343c86e8].

This acutally causes a segfault with the sample xspf files given in #2353 because psz_uri is always NULL when given to input_item_SetURI.
Reported by Aniruddha Shankar <k@191a.net> on https://bugs.gentoo.org/show_bug.cgi?id=261948Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent fe91f01c
......@@ -569,8 +569,7 @@ static bool parse_track_node COMPLEX_INTERFACE
free( psz_uri );
psz_uri = psz_tmp;
}
p_new_input = input_item_NewExt( p_demux, psz_uri,
NULL, 0, NULL, -1 );
input_item_SetURI( p_new_input, psz_uri );
free( psz_uri );
input_item_CopyOptions( p_input_item, p_new_input );
psz_uri = NULL;
......@@ -582,12 +581,6 @@ static bool parse_track_node COMPLEX_INTERFACE
FREE_ATT();
return false;
}
input_item_SetURI( p_new_input, psz_uri );
free( psz_uri );
input_item_CopyOptions( p_input_item, p_new_input );
psz_uri = NULL;
FREE_ATT();
p_handler = NULL;
}
else
{
......
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