[vlc-devel] commit: Qt : Keep preparsed items synced in playlist ( Besnard Jean-Baptiste )

git version control git at videolan.org
Wed Jul 22 10:31:18 CEST 2009


vlc | branch: master | Besnard Jean-Baptiste <jbbesnard at actech-innovation.com> | Wed Jul 22 09:21:43 2009 +0200| [20e97a2349735c85d03edd96a16f4a66233bcd2d] | committer: Ilkka Ollakka 

Qt : Keep preparsed items synced in playlist

Signed-off-by: Ilkka Ollakka <ileoo at videolan.org>

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

 modules/gui/qt4/input_manager.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index f0e57d0..c3d65d5 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -150,6 +150,9 @@ void InputManager::customEvent( QEvent *event )
     int i_type = event->type();
     IMEvent *ple = static_cast<IMEvent *>(event);
 
+    if( i_type == ItemChanged_Type )
+        UpdateMeta( ple->p_item->i_id );
+
     if( !hasInput() )
         return;
 
@@ -178,7 +181,6 @@ void InputManager::customEvent( QEvent *event )
             UpdateArt();
             /* Update duration of file */
         }
-        UpdateMeta( ple->p_item->i_id );
         break;
     case ItemStateChanged_Type:
         // TODO: Fusion with above state




More information about the vlc-devel mailing list