[vlc-devel] commit: Do not hide an interface idle sleep from the compiler... ( Rémi Denis-Courmont )

Pierre d'Herbemont pdherbemont at free.fr
Mon Sep 8 22:49:49 CEST 2008


On Sep 8, 2008, at 10:14 PM, git version control wrote:

> vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com>  
> | Mon Sep  8 23:00:09 2008 +0300|  
> [eaddfc0bd90b5b87d284015dfecffd49eea22d22] | committer: Rémi Denis- 
> Courmont
>
> Do not hide an interface idle sleep from the compiler...
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eaddfc0bd90b5b87d284015dfecffd49eea22d22
> ---
>
> modules/gui/macosx/intf.m |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
> index 9782a19..8f4b88e 100644
> --- a/modules/gui/macosx/intf.m
> +++ b/modules/gui/macosx/intf.m
> @@ -1397,7 +1397,7 @@ static void * ManageThread( void *user_data )
>
>         vlc_mutex_unlock( &p_intf->change_lock );
>
> -        vlc_object_timedwait( p_intf, 100000 + mdate());
> +        msleep( INTF_IDLE_SLEEP );

Nah, please don't. 100ms secs to exit isn't a good idea.

Pierre.




More information about the vlc-devel mailing list