mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 16:24:04 +02:00
Resource Manager: Fix a bug when reusing an already-loaded data buffer.
This commit is contained in:
@@ -2197,6 +2197,12 @@ static ma_result ma_resource_manager_data_buffer_init_nolock(ma_resource_manager
|
||||
return result; /* Should never happen. Failed to increment the reference count. */
|
||||
}
|
||||
|
||||
result = ma_resource_manager_data_buffer_init_connector(pDataBuffer);
|
||||
if (result != MA_SUCCESS) {
|
||||
ma_resource_manager_data_buffer_node_free(pDataBuffer->pResourceManager, pDataBuffer->pNode);
|
||||
return result;
|
||||
}
|
||||
|
||||
if (pNotification != NULL) {
|
||||
ma_async_notification_signal(pNotification);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user