[vlc-devel] commit: macosx: Don't update the messages more than needed. (Pierre d' Herbemont )

git version control git at videolan.org
Sun Feb 8 01:03:05 CET 2009


vlc | branch: 0.9-bugfix | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Nov  9 12:32:39 2008 +0100| [627eb87bdc7d71a656bbf339831644641d307249] | committer: Pierre d'Herbemont 

macosx: Don't update the messages more than needed.

This saves some CPU time.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=627eb87bdc7d71a656bbf339831644641d307249
---

 modules/gui/macosx/intf.m |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index b9fea37..040b17b 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -2339,6 +2339,8 @@ end:
 {
     int i_start, i_stop;
 
+    if(![o_msgs_panel isVisible]) return;
+
     vlc_mutex_lock( p_intf->p_sys->p_sub->p_lock );
     i_stop = *p_intf->p_sys->p_sub->pi_stop;
     vlc_mutex_unlock( p_intf->p_sys->p_sub->p_lock );




More information about the vlc-devel mailing list