summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-21 16:32:31 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-21 16:32:31 +0000
commitc5d0cb235edc75703b88d75eb41a0f85abe37020 (patch)
tree366928970928c02ea47262b6b96a4448c8f4b29c /libvo/x11_common.c
parenta9faa876948ae08f263ca6eb01cc511735c2677d (diff)
downloadmpv-c5d0cb235edc75703b88d75eb41a0f85abe37020.tar.bz2
mpv-c5d0cb235edc75703b88d75eb41a0f85abe37020.tar.xz
prevent crashes with vo_sdl
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10921 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r--libvo/x11_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 7d4a4c0dca..b704a7b1a0 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -1101,7 +1101,7 @@ void xscreensaver_heartbeat(float time)
{
XEvent ev;
- if (xs_windowid &&
+ if (mDisplay && xs_windowid &&
((time - time_last)>30 ||
(time - time_last)<0)) {
time_last = time;