aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2016-08-03 13:50:51 +0200
committerRainer Hochecker <fernetmenta@online.de>2016-08-04 13:44:45 +0200
commit533c018a39543aa6d35c340d1fbd199070975726 (patch)
treec4aa9eebb81e366fbd5bdaf00fb6e6e858e15f82
parentc303e492f10ea137ddfa5b4c1ae2be7f3bb18b1d (diff)
render: only call FinishPipeline if clocksync is active
-rw-r--r--xbmc/guilib/GraphicContext.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/xbmc/guilib/GraphicContext.cpp b/xbmc/guilib/GraphicContext.cpp
index 9caa43113f..e9d8e18445 100644
--- a/xbmc/guilib/GraphicContext.cpp
+++ b/xbmc/guilib/GraphicContext.cpp
@@ -21,6 +21,7 @@
#include "system.h"
#include "GraphicContext.h"
#include "Application.h"
+#include "cores/DataCacheCore.h"
#include "messaging/ApplicationMessenger.h"
#include "settings/AdvancedSettings.h"
#include "settings/DisplaySettings.h"
@@ -30,6 +31,7 @@
#include "TextureManager.h"
#include "input/InputManager.h"
#include "GUIWindowManager.h"
+#include "ServiceBroker.h"
using namespace KODI::MESSAGING;
@@ -977,7 +979,7 @@ void CGraphicContext::SetMediaDir(const std::string &strMediaDir)
void CGraphicContext::Flip(bool rendered, bool videoLayer)
{
- if (IsFullScreenVideo())
+ if (IsFullScreenVideo() && CServiceBroker::GetDataCacheCore().IsRenderClockSync())
g_Windowing.FinishPipeline();
g_Windowing.PresentRender(rendered, videoLayer);