aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lane <jingai@floatingpenguins.com>2015-02-14 12:15:34 -0500
committerMemphiz <memphis@machzwo.de>2015-02-15 22:13:29 +0100
commit1f4a64a3bbbf01043e76ab05ec3318e00be1402b (patch)
tree83bc0105e7c853626f1f07c7485312f7a95eaf9e
parent5df2bd38f0e55083e8867e5ea9eadf512bc36fdd (diff)
[osx/ios] VideoSyncCocoa log refresh rate as floating point value.
-rw-r--r--xbmc/video/videosync/VideoSyncCocoa.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/xbmc/video/videosync/VideoSyncCocoa.cpp b/xbmc/video/videosync/VideoSyncCocoa.cpp
index a9ba17017f..9e0f6057a1 100644
--- a/xbmc/video/videosync/VideoSyncCocoa.cpp
+++ b/xbmc/video/videosync/VideoSyncCocoa.cpp
@@ -125,9 +125,8 @@ void CVideoSyncCocoa::OnResetDevice()
float CVideoSyncCocoa::GetFps()
{
- int fpsInt;
#if defined(TARGET_DARWIN_IOS)
- fpsInt = MathUtils::round_int(g_Windowing.GetDisplayLinkFPS() + 0.5);
+ int fpsInt = MathUtils::round_int(g_Windowing.GetDisplayLinkFPS() + 0.5);
if (fpsInt != MathUtils::round_int(m_fps))
{
@@ -135,9 +134,8 @@ float CVideoSyncCocoa::GetFps()
}
#else
m_fps = g_graphicsContext.GetFPS();
- fpsInt = MathUtils::round_int(m_fps);
#endif
- CLog::Log(LOGDEBUG, "CVideoSyncCocoa::%s Detected refreshrate: %i hertz", __FUNCTION__, fpsInt);
+ CLog::Log(LOGDEBUG, "CVideoSyncCocoa::%s Detected refreshrate: %f hertz", __FUNCTION__, m_fps);
return m_fps;
}