mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-02-16 02:30:56 +00:00
Use the new LiRequestIdrFrame() API
This commit is contained in:
@@ -58,7 +58,7 @@ void MoonlightInstance::DidLockMouse(int32_t result) {
|
||||
if (m_MouseLocked) {
|
||||
// Request an IDR frame to dump the frame queue that may have
|
||||
// built up from the GL pipeline being stalled.
|
||||
g_Instance->m_RequestIdrFrame = true;
|
||||
LiRequestIdrFrame();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Submodule moonlight-common-c updated: 54825845e7...9240090983
@@ -58,7 +58,6 @@ class MoonlightInstance : public pp::Instance, public pp::MouseLock {
|
||||
pp::MouseLock(this),
|
||||
m_HasNextPicture(false),
|
||||
m_IsPainting(false),
|
||||
m_RequestIdrFrame(false),
|
||||
m_OpusDecoder(NULL),
|
||||
m_CallbackFactory(this),
|
||||
m_MouseLocked(false),
|
||||
@@ -190,7 +189,6 @@ class MoonlightInstance : public pp::Instance, public pp::MouseLock {
|
||||
bool m_HasNextPicture;
|
||||
PP_VideoPicture m_CurrentPicture;
|
||||
bool m_IsPainting;
|
||||
bool m_RequestIdrFrame;
|
||||
|
||||
pp::Rect m_PluginRect;
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ void MoonlightInstance::DidChangeFocus(bool got_focus) {
|
||||
// Request an IDR frame to dump the frame queue that may have
|
||||
// built up from the GL pipeline being stalled.
|
||||
if (got_focus) {
|
||||
g_Instance->m_RequestIdrFrame = true;
|
||||
LiRequestIdrFrame();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -248,12 +248,6 @@ int MoonlightInstance::VidDecSubmitDecodeUnit(PDECODE_UNIT decodeUnit) {
|
||||
unsigned int offset;
|
||||
unsigned int totalLength;
|
||||
|
||||
// Request an IDR frame if needed
|
||||
if (g_Instance->m_RequestIdrFrame) {
|
||||
g_Instance->m_RequestIdrFrame = false;
|
||||
return DR_NEED_IDR;
|
||||
}
|
||||
|
||||
totalLength = decodeUnit->fullLength;
|
||||
if (decodeUnit->frameType == FRAME_TYPE_IDR) {
|
||||
// Add some extra space for the SPS fixup
|
||||
|
||||
Reference in New Issue
Block a user