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