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

Simplify

parent f0e76bae
...@@ -145,6 +145,9 @@ struct xml_reader_sys_t ...@@ -145,6 +145,9 @@ struct xml_reader_sys_t
static int ReaderOpen( vlc_object_t *p_this ) static int ReaderOpen( vlc_object_t *p_this )
{ {
if( !xmlHasFeature( XML_WITH_THREAD ) )
return VLC_EGENERIC;
xml_reader_t *p_reader = (xml_reader_t *)p_this; xml_reader_t *p_reader = (xml_reader_t *)p_this;
xml_reader_sys_t *p_sys = malloc( sizeof( *p_sys ) ); xml_reader_sys_t *p_sys = malloc( sizeof( *p_sys ) );
xmlTextReaderPtr p_libxml_reader; xmlTextReaderPtr p_libxml_reader;
...@@ -152,12 +155,6 @@ static int ReaderOpen( vlc_object_t *p_this ) ...@@ -152,12 +155,6 @@ static int ReaderOpen( vlc_object_t *p_this )
if( unlikely(!p_sys) ) if( unlikely(!p_sys) )
return VLC_ENOMEM; return VLC_ENOMEM;
if( !xmlHasFeature( XML_WITH_THREAD ) )
{
free( p_sys );
return VLC_EGENERIC;
}
vlc_mutex_lock( &lock ); vlc_mutex_lock( &lock );
xmlInitParser(); xmlInitParser();
vlc_mutex_unlock( &lock ); vlc_mutex_unlock( &lock );
......
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