From c5d0cb235edc75703b88d75eb41a0f85abe37020 Mon Sep 17 00:00:00 2001 From: henry Date: Sun, 21 Sep 2003 16:32:31 +0000 Subject: [PATCH] prevent crashes with vo_sdl git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10921 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;