summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-21 23:51:27 +0000
committerptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-21 23:51:27 +0000
commit7440b82eb787d2b29d36a3e4752b0e0d5074d469 (patch)
treea115a0531aa79206a2e5ce3413085da8aeeac12a /libvo
parent7a8f8317fd501364b3c76156189c2100d338097f (diff)
downloadmpv-7440b82eb787d2b29d36a3e4752b0e0d5074d469.tar.bz2
mpv-7440b82eb787d2b29d36a3e4752b0e0d5074d469.tar.xz
resolves problem in module stop_xscreensaver, crashing mp after sleep and awake or enabling/disabling xssaver by hand
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17025 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index ed84a69c40..efe4406f08 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -1572,6 +1572,8 @@ void xscreensaver_heartbeat(void)
unsigned int time = GetTimerMS();
XEvent ev;
+ if (mDisplay)
+ xs_windowid = find_xscreensaver_window(mDisplay);
if (mDisplay && xs_windowid &&
((time - time_last) > 30000 || (time - time_last) < 0))
{