mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-10-26 14:09:58 +00:00
Flushing the decoder seems to hang when the software fallback is in use, so let the destructor abort callbacks instead
This commit is contained in:
1 parent
6c13c9b67d
commit
69ba5a709b
1 file changed
+1
-2
+1
-2
@@ -178,8 +178,7 @@ void MoonlightInstance::DispatchGetPicture(uint32_t unused) {
|
|||||||
void MoonlightInstance::VidDecCleanup(void) {
|
void MoonlightInstance::VidDecCleanup(void) {
|
||||||
free(s_DecodeBuffer);
|
free(s_DecodeBuffer);
|
||||||
|
|
||||||
// Flush and delete the decoder
|
// Delete the decoder
|
||||||
g_Instance->m_VideoDecoder->Flush(pp::BlockUntilComplete());
|
|
||||||
delete g_Instance->m_VideoDecoder;
|
delete g_Instance->m_VideoDecoder;
|
||||||
|
|
||||||
// Delete shader programs
|
// Delete shader programs
|
||||||
|
|||||||
Reference in new issue
Block a user