1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00

prevent crashes with vo_sdl

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10921 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
henry 2003-09-21 16:32:31 +00:00
parent a9faa87694
commit c5d0cb235e

View File

@ -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;