diff options
author | rathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-05-13 18:34:02 +0000 |
---|---|---|
committer | rathann <rathann@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-05-13 18:34:02 +0000 |
commit | 97bd024609ad41b60f3732aa2bdcf46ef06e1478 (patch) | |
tree | fb129e437289b7665c8e87b755ffa91e1b38fd9e /libvo/x11_common.c | |
parent | 7beaed26270d7aa162ded0324e30b984be2f01f0 (diff) | |
download | mpv-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/x11_common.c')
-rw-r--r-- | libvo/x11_common.c | 3 |
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; |