fixed possible 'DoS' bug

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7118 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-08-28 18:38:41 +00:00
parent 0004ab4be4
commit 9afe7b36ef
1 changed files with 3 additions and 3 deletions

View File

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