mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-21 07:30:13 +00:00
Reset the decoder when D3D state is lost
This commit is contained in:
@@ -128,14 +128,9 @@ FFmpegVideoDecoder::~FFmpegVideoDecoder()
|
||||
}
|
||||
}
|
||||
|
||||
avcodec_close(m_VideoDecoderCtx);
|
||||
av_free(m_VideoDecoderCtx);
|
||||
m_VideoDecoderCtx = nullptr;
|
||||
|
||||
m_HwDecodeCfg = nullptr;
|
||||
avcodec_free_context(&m_VideoDecoderCtx);
|
||||
|
||||
delete m_Renderer;
|
||||
m_Renderer = nullptr;
|
||||
}
|
||||
|
||||
bool FFmpegVideoDecoder::initialize(
|
||||
|
||||
Reference in New Issue
Block a user