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.
This commit is contained in:
Paul Adenot 2023-11-09 11:12:42 +01:00
Родитель 72ded59b4d
Коммит ce3645e65c
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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) {