Do not block XMA when there is no work buffer available

This commit is contained in:
Gliniak 2021-10-10 23:12:57 +02:00
parent 009f709ad4
commit f43e400c91
1 changed files with 3 additions and 0 deletions

View File

@ -385,6 +385,9 @@ dword_result_t XMABlockWhileInUse_entry(lpvoid_t context_ptr) {
if (!context.input_buffer_0_valid && !context.input_buffer_1_valid) {
break;
}
if (!context.work_buffer_ptr) {
break;
}
xe::threading::Sleep(std::chrono::milliseconds(1));
} while (true);
return 0;