2026-09-06 22:52:10

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie
2026-09-06 22:52:10 +00:00
parent 8514352b24
commit 85f12449dd
2 changed files with 4 additions and 2 deletions
@@ -43,7 +43,8 @@ Result OpusDecodeObject::Shutdown() {
Result OpusDecodeObject::ResetDecoder() {
if (avctx) {
avcodec_flush_buffers(avctx);
if (avcodec_is_open(avctx))
avcodec_flush_buffers(avctx);
return ResultSuccess;
}
return Service::Audio::ResultLibOpusInvalidState;
@@ -53,7 +53,8 @@ Result OpusMultiStreamDecodeObject::Shutdown() {
Result OpusMultiStreamDecodeObject::ResetDecoder() {
if (avctx) {
avcodec_flush_buffers(avctx);
if (avcodec_is_open(avctx))
avcodec_flush_buffers(avctx);
return ResultSuccess;
}
return Service::Audio::ResultLibOpusInvalidState;