mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-02-16 10:41:03 +00:00
Flush the decoder before deleting it
This commit is contained in:
@@ -149,6 +149,9 @@ void MoonlightInstance::DispatchGetPicture(uint32_t unused) {
|
||||
|
||||
void MoonlightInstance::VidDecCleanup(void) {
|
||||
free(s_DecodeBuffer);
|
||||
|
||||
// Flush and delete the decoder
|
||||
g_Instance->m_VideoDecoder->Flush(pp::BlockUntilComplete());
|
||||
delete g_Instance->m_VideoDecoder;
|
||||
|
||||
if (g_Instance->m_Texture2DShader.program) {
|
||||
|
||||
Reference in New Issue
Block a user