summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-05-13 18:34:02 +0000
committerrathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-05-13 18:34:02 +0000
commit97bd024609ad41b60f3732aa2bdcf46ef06e1478 (patch)
treefb129e437289b7665c8e87b755ffa91e1b38fd9e /libvo
parent7beaed26270d7aa162ded0324e30b984be2f01f0 (diff)
downloadmpv-97bd024609ad41b60f3732aa2bdcf46ef06e1478.tar.bz2
mpv-97bd024609ad41b60f3732aa2bdcf46ef06e1478.tar.xz
Simplify condition, since both time and time_last are unsigned.
Patch by Rich Felker. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18486 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 96cdc05b39..6a522bfda8 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -1597,8 +1597,7 @@ void xscreensaver_heartbeat(void)
unsigned int time = GetTimerMS();
XEvent ev;
- if (mDisplay && xs_windowid &&
- ((time - time_last) > 30000 || (time - time_last) < 0))
+ if (mDisplay && xs_windowid && (time - time_last) > 30000)
{
time_last = time;