aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_opensl.cpp
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2023-11-09 11:12:42 +0100
committerPaul Adenot <[email protected]>2023-11-10 11:31:35 +0100
commitce3645e65cfb88a55051871087079f6385f53dfb (patch)
treee7483109a4914713b784645d8b491143b6320975 /src/cubeb_opensl.cpp
parent72ded59b4d084e9dc4a8324b67ff7b98c7b88ab3 (diff)
downloadcubeb-ce3645e65cfb88a55051871087079f6385f53dfb.tar.gz
cubeb-ce3645e65cfb88a55051871087079f6385f53dfb.zip
Reset thread id when a new stream is created, in OpenSL backend
This is not 100% correct, but prevents crashing on an assert in the very common case of opening multiple streams back to back with logging enabled.
Diffstat (limited to 'src/cubeb_opensl.cpp')
-rw-r--r--src/cubeb_opensl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cubeb_opensl.cpp b/src/cubeb_opensl.cpp
index 4115050..916d7da 100644
--- a/src/cubeb_opensl.cpp
+++ b/src/cubeb_opensl.cpp
@@ -1509,6 +1509,7 @@ opensl_stream_init(cubeb * ctx, cubeb_stream ** stream,
cubeb_state_callback state_callback, void * user_ptr)
{
cubeb_stream * stm = nullptr;
+ cubeb_async_log_reset_threads();
assert(ctx);
if (input_device || output_device) {