Commit 194072ae authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix XSPF crash when XML is not available

parent 8838c695
...@@ -116,14 +116,15 @@ int Demux( demux_t *p_demux ) ...@@ -116,14 +116,15 @@ int Demux( demux_t *p_demux )
FREE_NAME(); FREE_NAME();
} }
i_ret = parse_playlist_node( p_demux, p_playlist, p_current_input, if( i_ret == VLC_SUCCESS )
p_xml_reader, "playlist" ); i_ret = parse_playlist_node( p_demux, p_playlist, p_current_input,
p_xml_reader, "playlist" );
HANDLE_PLAY_AND_RELEASE; HANDLE_PLAY_AND_RELEASE;
if( p_xml_reader ) if( p_xml_reader )
xml_ReaderDelete( p_xml, p_xml_reader ); xml_ReaderDelete( p_xml, p_xml_reader );
if( p_xml ) if( p_xml )
xml_Delete( p_xml ); xml_Delete( p_xml );
return -1; /* Needed for correct operation of go back */ return i_ret; /* Needed for correct operation of go back */
} }
/** \brief dummy function for demux callback interface */ /** \brief dummy function for demux callback interface */
......
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