Commit 65b041af authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

smooth: remove unused XML validator

parent 549a987a
...@@ -123,25 +123,16 @@ static void cleanup_attributes(custom_attrs_t **cp) ...@@ -123,25 +123,16 @@ static void cleanup_attributes(custom_attrs_t **cp)
static int parse_Manifest( stream_t *s ) static int parse_Manifest( stream_t *s )
{ {
stream_sys_t *p_sys = s->p_sys; stream_sys_t *p_sys = s->p_sys;
xml_t *vlc_xml = NULL;
xml_reader_t *vlc_reader = NULL; xml_reader_t *vlc_reader = NULL;
int type = UNKNOWN_ES; int type = UNKNOWN_ES;
const char *name, *value; const char *name, *value;
stream_t *st = s->p_source; stream_t *st = s->p_source;
msg_Dbg( s, "Manifest parsing\n" ); msg_Dbg( s, "Manifest parsing\n" );
vlc_xml = xml_Create( st ); vlc_reader = xml_ReaderCreate( st, st );
if( !vlc_xml )
{
msg_Err( s, "Failed to open XML parser" );
return VLC_EGENERIC;
}
vlc_reader = xml_ReaderCreate( vlc_xml, st );
if( !vlc_reader ) if( !vlc_reader )
{ {
msg_Err( s, "Failed to open source for parsing" ); msg_Err( s, "Failed to open source for parsing" );
xml_Delete( vlc_xml );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
...@@ -432,7 +423,6 @@ cleanup: ...@@ -432,7 +423,6 @@ cleanup:
cleanup_attributes( &cp ); cleanup_attributes( &cp );
sms_Free( sms ); sms_Free( sms );
xml_ReaderDelete( vlc_reader ); xml_ReaderDelete( vlc_reader );
xml_Delete( vlc_xml );
return ret; return ret;
} }
......
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