Commit f0c70d14 authored by Gildas Bazin's avatar Gildas Bazin

* modules/wxwindows/wxwindows.cpp, modules/skins2/src/skin_main.cpp: don't...

* modules/wxwindows/wxwindows.cpp, modules/skins2/src/skin_main.cpp: don't start the playlist if it is empty.
parent e9ef4392
......@@ -219,7 +219,16 @@ static void Run( intf_thread_t *p_intf )
FIND_ANYWHERE );
if( p_playlist )
{
vlc_mutex_lock( &p_playlist->object_lock );
if( p_playlist->i_size )
{
vlc_mutex_unlock( &p_playlist->object_lock );
playlist_Play( p_playlist );
}
else
{
vlc_mutex_unlock( &p_playlist->object_lock );
}
vlc_object_release( p_playlist );
}
}
......
......@@ -317,7 +317,16 @@ bool Instance::OnInit()
FIND_ANYWHERE );
if( p_playlist )
{
vlc_mutex_lock( &p_playlist->object_lock );
if( p_playlist->i_size )
{
vlc_mutex_unlock( &p_playlist->object_lock );
playlist_Play( p_playlist );
}
else
{
vlc_mutex_unlock( &p_playlist->object_lock );
}
vlc_object_release( p_playlist );
}
}
......
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