mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
Fix a bug when an async data buffer fails to load.
This commit is contained in:
@@ -6714,12 +6714,14 @@ done:
|
||||
pDataBuffer->pNode->data.decoded.decodedFrameCount = 0;
|
||||
}
|
||||
|
||||
/* The job has been set up so it can now be posted. */
|
||||
result = ma_resource_manager_post_job(pResourceManager, &pageDataBufferJob);
|
||||
|
||||
/* The result needs to be set to MA_BUSY to ensure the status of the data buffer is set properly in the next section. */
|
||||
if (result == MA_SUCCESS) {
|
||||
result = MA_BUSY;
|
||||
/* The job has been set up so it can now be posted. */
|
||||
result = ma_resource_manager_post_job(pResourceManager, &pageDataBufferJob);
|
||||
|
||||
/* The result needs to be set to MA_BUSY to ensure the status of the data buffer is set properly in the next section. */
|
||||
if (result == MA_SUCCESS) {
|
||||
result = MA_BUSY;
|
||||
}
|
||||
}
|
||||
|
||||
/* We want to make sure we don't signal the event here. It needs to be delayed until the last page. */
|
||||
|
||||
Reference in New Issue
Block a user