mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-07 12:48:03 +00:00
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user