diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-28 18:38:41 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-08-28 18:38:41 +0000 |
commit | 9afe7b36ef14b5c813bb98c0e9380aa5471b9525 (patch) | |
tree | 55c852c041df3e296c191c3d82a845a5e968d030 | |
parent | 0004ab4be43c47a098f5e6d291c6a30762305071 (diff) | |
download | mpv-9afe7b36ef14b5c813bb98c0e9380aa5471b9525.tar.bz2 mpv-9afe7b36ef14b5c813bb98c0e9380aa5471b9525.tar.xz |
fixed possible 'DoS' bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7118 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_tdfxfb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libvo/vo_tdfxfb.c b/libvo/vo_tdfxfb.c index 4c2ff1b68d..aa8e133c1e 100644 --- a/libvo/vo_tdfxfb.c +++ b/libvo/vo_tdfxfb.c @@ -158,9 +158,9 @@ static void clear_screen() A printf before the memset call also seems to work, but this made more sense since it actually checks the status of the card. */ - do { - memset(vidpage, 0, screenwidth * screenheight * screendepth); - } while((reg_IO->status & 0x1f) < 1); + /* first wait for the card to be ready, do not try to write every time - alex */ + do {} while((reg_IO->status & 0x1f) < 1); + memset(vidpage, 0, screenwidth * screenheight * screendepth); if(vo_doublebuffering) { memset(hidpage, 0, screenwidth * screenheight * screendepth); |