Commit 96793133 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

XDG screensaver: fix initialization ordering

parent d4a98023
......@@ -63,6 +63,8 @@ static int Open (vlc_object_t *obj)
vlc_mutex_init (&p_sys->lock);
vlc_cond_init (&p_sys->wait);
p_sys->suspend = false;
if (vlc_clone (&p_sys->thread, Thread, ih, VLC_THREAD_PRIORITY_LOW))
{
vlc_cond_destroy (&p_sys->wait);
......@@ -70,8 +72,6 @@ static int Open (vlc_object_t *obj)
free (p_sys);
return VLC_ENOMEM;
}
p_sys->suspend = false;
return VLC_SUCCESS;
}
......
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