Commit 20173705 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

mmdevice: avoid incorrect assertion

parent ad58279c
......@@ -1033,7 +1033,10 @@ static int Open(vlc_object_t *obj)
goto error;
}
DeviceSelect(aout, NULL);
EnterCriticalSection(&sys->lock);
while (sys->device != NULL)
SleepConditionVariableCS(&sys->ready, &sys->lock, INFINITE);
LeaveCriticalSection(&sys->lock);
LeaveMTA(); /* Leave MTA after thread has entered MTA */
#else
sys->client = var_InheritAddress(aout, "mmdevice-audioclient");
......
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