mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-04 03:21:42 +00:00
reset to nil
This commit is contained in:
@@ -34,8 +34,10 @@ Result OpusDecodeObject::InitializeDecoder(u32 sample_rate, u32 channel_count) {
|
||||
}
|
||||
|
||||
Result OpusDecodeObject::Shutdown() {
|
||||
if (avctx)
|
||||
if (avctx) {
|
||||
avcodec_free_context(&avctx);
|
||||
avctx = nullptr;
|
||||
}
|
||||
return ResultSuccess;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,8 +44,10 @@ Result OpusMultiStreamDecodeObject::InitializeDecoder(u32 sample_rate, u32 total
|
||||
}
|
||||
|
||||
Result OpusMultiStreamDecodeObject::Shutdown() {
|
||||
if (avctx)
|
||||
if (avctx) {
|
||||
avcodec_free_context(&avctx);
|
||||
avctx = nullptr;
|
||||
}
|
||||
return ResultSuccess;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user