mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-11-28 08:43:57 +00:00
Synchronize several renderer callbacks
Many renderers do not properly synchronize these on their own, so let's do it for them. HDR and window changes are infrequent enough not to really matter.
This commit is contained in:
1 parent
10270ca0f6
commit
1ced9dd9b0
4 files changed
+51
-7
No files matched your search
@@ -77,12 +77,20 @@ bool FFmpegVideoDecoder::isHdrSupported()
|
||||
|
||||
void FFmpegVideoDecoder::setHdrMode(bool enabled)
|
||||
{
|
||||
m_FrontendRenderer->acquireRenderLock();
|
||||
m_FrontendRenderer->setHdrMode(enabled);
|
||||
m_FrontendRenderer->releaseRenderLock();
|
||||
}
|
||||
|
||||
bool FFmpegVideoDecoder::notifyWindowChanged(PWINDOW_STATE_CHANGE_INFO info)
|
||||
{
|
||||
return m_FrontendRenderer->notifyWindowChanged(info);
|
||||
bool ret;
|
||||
|
||||
m_FrontendRenderer->acquireRenderLock();
|
||||
ret = m_FrontendRenderer->notifyWindowChanged(info);
|
||||
m_FrontendRenderer->releaseRenderLock();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
int FFmpegVideoDecoder::getDecoderCapabilities()
|
||||
|
||||
Reference in new issue
Block a user