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
1 changed files with 1 additions and 1 deletions

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;