[vlc-commits] Qt: inputstats: don't update if not visible

Francois Cartegnie git at videolan.org
Sat Feb 25 20:37:10 CET 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Feb 23 14:10:08 2012 +0100| [e3ed7e40abf8744b00a2e28947fde36f6b0d1f04] | committer: Francois Cartegnie

Qt: inputstats: don't update if not visible

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

 modules/gui/qt4/components/info_panels.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/info_panels.cpp b/modules/gui/qt4/components/info_panels.cpp
index 47cba6d..6b72d57 100644
--- a/modules/gui/qt4/components/info_panels.cpp
+++ b/modules/gui/qt4/components/info_panels.cpp
@@ -569,6 +569,7 @@ InputStatsPanel::InputStatsPanel( QWidget *parent,
  **/
 void InputStatsPanel::update( input_item_t *p_item )
 {
+    if ( !isVisible() ) return;
     assert( p_item );
     vlc_mutex_lock( &p_item->p_stats->lock );
 



More information about the vlc-commits mailing list