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) ...@@ -1033,7 +1033,10 @@ static int Open(vlc_object_t *obj)
goto error; 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 */ LeaveMTA(); /* Leave MTA after thread has entered MTA */
#else #else
sys->client = var_InheritAddress(aout, "mmdevice-audioclient"); 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