Fix a bug when an async data buffer fails to load.

This commit is contained in:
David Reid
2020-12-03 20:35:22 +10:00
parent ae9449cdba
commit 0f9355cf1b
+2
View File
@@ -6714,6 +6714,7 @@ done:
pDataBuffer->pNode->data.decoded.decodedFrameCount = 0;
}
if (result == MA_SUCCESS) {
/* The job has been set up so it can now be posted. */
result = ma_resource_manager_post_job(pResourceManager, &pageDataBufferJob);
@@ -6721,6 +6722,7 @@ done:
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. */
pJob->loadDataBuffer.pNotification = NULL;