[Mplayer-cvslog] CVS: main/osdep timer-darwin.c,1.4,1.5

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Nov 2 21:08:15 CET 2004


Hi,
> Modified Files:
> 	timer-darwin.c 
> Log Message:
> repace call to sleep_accurate to usleep which fix hang while using -cache option on osx
> 
> Index: timer-darwin.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/osdep/timer-darwin.c,v
> retrieving revision 1.4
> retrieving revision 1.5
> diff -u -r1.4 -r1.5
> --- timer-darwin.c	4 Aug 2004 15:48:43 -0000	1.4
> +++ timer-darwin.c	27 Oct 2004 18:03:11 -0000	1.5
> @@ -32,20 +32,12 @@
>  
>  const char *timer_name = "Darwin accurate";
>  
> -/* the core sleep function, uses floats and is used in MPlayer G2 */
> -float sleep_accurate(float time_frame)
> -{
> -  uint64_t deadline = time_frame / timebase_ratio + mach_absolute_time();
> -
> -  mach_wait_until(deadline);
>  
> -  return (mach_absolute_time() - deadline) * timebase_ratio;
> -}
>  
>  /* wrapper for MPlayer G1 */
>  int usec_sleep(int usec_delay)
>  {
> -  return sleep_accurate(usec_delay / 1e6) * 1e6;
> +  return usleep(usec_delay);
>  }

A bit late a reply, but... Last time I checked cvs-howto.txt, removing
features from CVS wasn't allowed... And this seems to remove a feature.
Either fixing or #ifdef-ing-out would have been the right way I think

Greetings,
Reimar Döffinger




More information about the MPlayer-cvslog mailing list