mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-10 22:16:11 +00:00
@@ -43,7 +43,8 @@ Result OpusDecodeObject::Shutdown() {
|
|||||||
|
|
||||||
Result OpusDecodeObject::ResetDecoder() {
|
Result OpusDecodeObject::ResetDecoder() {
|
||||||
if (avctx) {
|
if (avctx) {
|
||||||
avcodec_flush_buffers(avctx);
|
if (avcodec_is_open(avctx))
|
||||||
|
avcodec_flush_buffers(avctx);
|
||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
}
|
}
|
||||||
return Service::Audio::ResultLibOpusInvalidState;
|
return Service::Audio::ResultLibOpusInvalidState;
|
||||||
|
|||||||
@@ -53,7 +53,8 @@ Result OpusMultiStreamDecodeObject::Shutdown() {
|
|||||||
|
|
||||||
Result OpusMultiStreamDecodeObject::ResetDecoder() {
|
Result OpusMultiStreamDecodeObject::ResetDecoder() {
|
||||||
if (avctx) {
|
if (avctx) {
|
||||||
avcodec_flush_buffers(avctx);
|
if (avcodec_is_open(avctx))
|
||||||
|
avcodec_flush_buffers(avctx);
|
||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
}
|
}
|
||||||
return Service::Audio::ResultLibOpusInvalidState;
|
return Service::Audio::ResultLibOpusInvalidState;
|
||||||
|
|||||||
Reference in New Issue
Block a user