Commit ef81e665 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

playlist: Use PL_LOCK and PL_UNLOCK.

parent a11817c9
......@@ -151,16 +151,16 @@ static void RunControlThread ( playlist_t *p_playlist )
vlc_object_lock( p_playlist );
while( vlc_object_alive( p_playlist ) )
{
vlc_object_unlock( p_playlist );
PL_UNLOCK;
playlist_MainLoop( p_playlist );
vlc_object_lock( p_playlist );
PL_LOCK;
if( p_playlist->b_cant_sleep )
{
/* 100 ms is an acceptable delay for playlist operations */
vlc_object_unlock( p_playlist );
PL_UNLOCK;
msleep( INTF_IDLE_SLEEP*2 );
vlc_object_lock( p_playlist );
PL_LOCK;
}
else
{
......
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