[vlc-commits] Qt: EPG: fix mutex position

Francois Cartegnie git at videolan.org
Wed Mar 23 22:10:58 CET 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Mar 23 20:47:13 2011 +0100| [cea122b10e04c91cff2a654b4d078cebe64990ee] | committer: Francois Cartegnie

Qt: EPG: fix mutex position

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

 modules/gui/qt4/components/epg/EPGView.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/epg/EPGView.cpp b/modules/gui/qt4/components/epg/EPGView.cpp
index 10d58c1..de74957 100644
--- a/modules/gui/qt4/components/epg/EPGView.cpp
+++ b/modules/gui/qt4/components/epg/EPGView.cpp
@@ -277,9 +277,9 @@ EPGView::~EPGView()
 void EPGView::updateDuration()
 {
     QDateTime lastItem;
+    mutex.lock();
     QList<QGraphicsItem*> list = items();
 
-    mutex.lock();
     for ( int i = 0; i < list.count(); ++i )
     {
         EPGItem* item = qgraphicsitem_cast<EPGItem*>( list.at( i ) );



More information about the vlc-commits mailing list