Commit b1b58e38 authored by Francois Cartegnie's avatar Francois Cartegnie

ml: don't crash if there's no sql provider

parent 9309fb85
......@@ -157,7 +157,12 @@ static int load( vlc_object_t *obj )
vlc_mutex_init( &p_ml->p_sys->lock );
/* Initialise Sql module */
InitDatabase( p_ml );
if ( InitDatabase( p_ml ) != VLC_SUCCESS )
{
vlc_mutex_destroy( &p_ml->p_sys->lock );
//free( p_ml->p_sys ); // FIXME: Freed in InitDatase ?!?
return VLC_EGENERIC;
}
/* Initialise the media pool */
ARRAY_INIT( p_ml->p_sys->mediapool );
......
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