Commit 18a12248 authored by Erwan Tulou's avatar Erwan Tulou

skins2: skins2 interface cannot be used if no playlist is available

Better not start skins2 at all than crash later on, since playlist is taken for granted throughout the code.
parent b180b18e
......@@ -106,6 +106,11 @@ static int Open( vlc_object_t *p_this )
p_intf->p_sys->p_input = NULL;
p_intf->p_sys->p_playlist = pl_Hold( p_intf );
if( !p_intf->p_sys->p_playlist )
{
free( p_intf->p_sys );
return VLC_EGENERIC;
}
// Initialize "singleton" objects
p_intf->p_sys->p_logger = NULL;
......
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