diff options
-rw-r--r-- | src/cubeb_aaudio.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cubeb_aaudio.cpp b/src/cubeb_aaudio.cpp index c86dac7..4b7774e 100644 --- a/src/cubeb_aaudio.cpp +++ b/src/cubeb_aaudio.cpp @@ -1228,13 +1228,12 @@ aaudio_stream_init(cubeb * ctx, cubeb_stream ** stream, break; } - stm->in_use.store(true); - if (!stm) { LOG("Error: maximum number of streams reached"); return CUBEB_ERROR; } + stm->in_use.store(true); stm->context = ctx; stm->user_ptr = user_ptr; stm->data_callback = data_callback; |