mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
Invalidate input buffers if decoding fails
Should output be invalidated too?
This commit is contained in:
parent
c80ea14d9d
commit
8e35a3d649
|
|
@ -603,6 +603,9 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
|
|||
*/
|
||||
if (ret < 0) {
|
||||
XELOGE("XmaContext {}: Error during decoding", id());
|
||||
data->input_buffer_0_valid = 0;
|
||||
data->input_buffer_1_valid = 0;
|
||||
|
||||
assert_always();
|
||||
return; // TODO bail out
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue