зеркало из https://github.com/mozilla/cubeb.git
Fix wrong assert in close_wasapi_stream.cpp.
It's possible to have a thread and a shuwdown event here because we could be reconfiguring a device. This fixes BMO bug 1281402.
This commit is contained in:
Родитель
e0acbf2e5e
Коммит
9a1d6ccd2a
|
@ -1730,7 +1730,7 @@ wasapi_stream_init(cubeb * context, cubeb_stream ** stream,
|
|||
|
||||
void close_wasapi_stream(cubeb_stream * stm)
|
||||
{
|
||||
XASSERT(stm && !stm->thread && !stm->shutdown_event);
|
||||
XASSERT(stm);
|
||||
|
||||
stm->stream_reset_lock->assert_current_thread_owns();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче