Mercurial > mplayer.hg
changeset 7117:4e4d3026a1ca
fixed possible 'DoS' bug
author | alex |
---|---|
date | Wed, 28 Aug 2002 18:38:41 +0000 |
parents | e751a2b0991d |
children | 4332922afec4 |
files | libvo/vo_tdfxfb.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_tdfxfb.c Wed Aug 28 17:14:02 2002 +0000 +++ b/libvo/vo_tdfxfb.c Wed Aug 28 18:38:41 2002 +0000 @@ -158,9 +158,9 @@ 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);