forked from CoreELEC/CoreELEC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kodi: add patch to restore async resolution change
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...es/mediacenter/kodi/patches/amlogic/kodi-ce-114-tmp-restore-async-resolution-change.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|