mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix a bug introduced in an earlier commit.
This commit is contained in:
@@ -7054,8 +7054,14 @@ done:
|
||||
}
|
||||
}
|
||||
|
||||
if ((flags & MA_DATA_SOURCE_FLAG_WAIT_INIT) != 0) {
|
||||
ma_resource_manager_inline_notification_uninit(&initNotification);
|
||||
/*
|
||||
The init notification needs to be uninitialized. This will be used if the node does not already
|
||||
exist, and we've specified ASYNC | WAIT_INIT.
|
||||
*/
|
||||
if (nodeAlreadyExists == MA_FALSE) {
|
||||
if ((flags & MA_DATA_SOURCE_FLAG_ASYNC) != 0 && (flags & MA_DATA_SOURCE_FLAG_WAIT_INIT) != 0) {
|
||||
ma_resource_manager_inline_notification_uninit(&initNotification);
|
||||
}
|
||||
}
|
||||
|
||||
*ppDataBufferNode = pDataBufferNode;
|
||||
|
||||
Reference in New Issue
Block a user