Skip to content
Permalink
Browse files

rbp: Make debug message wrap safe

  • Loading branch information...
popcornmix committed Jul 16, 2016
1 parent 07b5304 commit ea043e55f4cd3712caf05c3da462ed34c0ad4722
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/linux/RBP.cpp
@@ -242,7 +242,7 @@ uint32_t CRBP::WaitVsync(uint32_t target)
if (!m_vsync_cond.wait(vlock, delay.MillisLeft()))
break;
}
if (m_vsync_count < target)
if ((signed)(m_vsync_count - target) < 0)
CLog::Log(LOGDEBUG, "CRBP::%s no vsync %d/%d display:%x(%x) delay:%d", __FUNCTION__, m_vsync_count, target, m_display, display, delay.MillisLeft());

return m_vsync_count;

0 comments on commit ea043e5

Please sign in to comment.
You can’t perform that action at this time.