From ce3645e65cfb88a55051871087079f6385f53dfb Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Thu, 9 Nov 2023 11:12:42 +0100 Subject: 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. --- src/cubeb_opensl.cpp | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3