mirror of
https://github.com/mpv-player/mpv
synced 2024-12-12 09:56:30 +00: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:
parent
a9faa87694
commit
c5d0cb235e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user