[MPlayer-dev-eng] [PATCH] Fix osd stuck bug on Darwin platform

Ulion ulion2002 at gmail.com
Mon Oct 22 08:02:17 CEST 2007


Hello,

Finally, I found the reason caused osd stuck on mac os x, it's the
GetTimerMS() function in osdep/timer-darwin.c, this is the current
code:

unsigned int GetTimerMS()
{
  return (unsigned int)(GetTimer() / 1000);
}

the GetTimer() return type is unsigned int, as the microseconds, it
will overflow after system startup for 4294.967296 seconds. Then the
return value of GetTimerMS() will be wrong, and will be not continual
every 4294.967296 seconds. The un-continual return value from
GetTimerMS() will cause the osd stuck bug. So I made a patch for it
here.

Besides, I announce my PGP key ID is 2ED38F73, public key can be found
at: http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x2ED38F73

-- 
Ulion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: darwin_timer_fix.diff
Type: application/octet-stream
Size: 479 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20071022/428359b4/attachment.obj>


More information about the MPlayer-dev-eng mailing list