Skip to content

Commit

Permalink
kodi: add patch to restore async resolution change
Browse files Browse the repository at this point in the history
  • Loading branch information
cdu13a committed Nov 19, 2018
1 parent 6d84a8b commit d750967
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 3907ac1a259a944cb34bc13121cf2e10bb842041 Mon Sep 17 00:00:00 2001
From: cdu13a <[email protected]>
Date: Wed, 14 Nov 2018 15:41:47 -0500
Subject: Revert "[VideoPlayer] SetResolution synchronously instead
RM::TriggerResolution"

This reverts commit 062ae33446d01027ed6369cdc54bce9f151c7dea.
---
xbmc/cores/VideoPlayer/VideoPlayer.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp
index e2a9319abb..5fa610cceb 100644
--- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp
+++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp
@@ -3747,8 +3747,6 @@ bool CVideoPlayer::OpenVideoStream(CDVDStreamInfo& hint, bool reset)
if (CServiceBroker::GetSettingsComponent()->GetSettings()->GetInt(CSettings::SETTING_VIDEOPLAYER_ADJUSTREFRESHRATE) != ADJUST_REFRESHRATE_OFF)
{
double framerate = DVD_TIME_BASE / CDVDCodecUtils::NormalizeFrameduration((double)DVD_TIME_BASE * hint.fpsscale / hint.fpsrate);
- RESOLUTION res = CResolutionUtils::ChooseBestResolution(static_cast<float>(framerate), hint.width, hint.height, !hint.stereo_mode.empty());
- CServiceBroker::GetWinSystem()->GetGfxContext().SetVideoResolution(res, false);
m_renderManager.TriggerUpdateResolution(framerate, hint.width, hint.height, hint.stereo_mode);
}
}

--
2.17.1

0 comments on commit d750967

Please sign in to comment.