[XMA] swap to valid buffer instead of stalling when current is invalid
This commit is contained in:
@@ -300,17 +300,15 @@ void XmaContextNew::Decode(XMA_CONTEXT_DATA* data) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t* current_input_buffer = GetCurrentInputBuffer(data);
|
|
||||||
|
|
||||||
if (!data->IsCurrentInputBufferValid()) {
|
if (!data->IsCurrentInputBufferValid()) {
|
||||||
XELOGE(
|
SwapInputBuffer(data);
|
||||||
"XmaContext {}: Invalid current buffer! Selected Buffer: {} Valid: {} "
|
if (!data->IsCurrentInputBufferValid()) {
|
||||||
"Pointer: {:08X}",
|
return;
|
||||||
id(), data->current_buffer, data->IsCurrentInputBufferValid(),
|
}
|
||||||
data->GetCurrentInputBufferAddress());
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8_t* current_input_buffer = GetCurrentInputBuffer(data);
|
||||||
|
|
||||||
input_buffer_.fill(0);
|
input_buffer_.fill(0);
|
||||||
|
|
||||||
UpdateLoopStatus(data);
|
UpdateLoopStatus(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user