mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-06 12:13:57 +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() {
|
Result OpusDecodeObject::Shutdown() {
|
||||||
if (avctx)
|
if (avctx) {
|
||||||
avcodec_free_context(&avctx);
|
avcodec_free_context(&avctx);
|
||||||
|
avctx = nullptr;
|
||||||
|
}
|
||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,8 +44,10 @@ Result OpusMultiStreamDecodeObject::InitializeDecoder(u32 sample_rate, u32 total
|
|||||||
}
|
}
|
||||||
|
|
||||||
Result OpusMultiStreamDecodeObject::Shutdown() {
|
Result OpusMultiStreamDecodeObject::Shutdown() {
|
||||||
if (avctx)
|
if (avctx) {
|
||||||
avcodec_free_context(&avctx);
|
avcodec_free_context(&avctx);
|
||||||
|
avctx = nullptr;
|
||||||
|
}
|
||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user