We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbc1d80 commit cc0d538Copy full SHA for cc0d538
1 file changed
src/cubeb_audiounit.cpp
@@ -2683,12 +2683,10 @@ audiounit_stream_destroy(cubeb_stream * stm)
2683
dispatch_sync(stm->context->serial_queue, ^() {
2684
auto_lock lock(stm->mutex);
2685
audiounit_close_stream(stm);
2686
+ assert(stm->context->active_streams >= 1);
2687
+ stm->context->active_streams -= 1;
2688
});
2689
- auto_lock context_lock(stm->context->mutex);
- assert(stm->context->active_streams >= 1);
2690
- stm->context->active_streams -= 1;
2691
-
2692
LOG("Cubeb stream (%p) destroyed successful.", stm);
2693
delete stm;
2694
}
0 commit comments