]> git.sesse.net Git - vlc/commitdiff
qt4: Use playlist_CurrentInput().
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 5 Jul 2008 13:15:19 +0000 (15:15 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 5 Jul 2008 13:50:01 +0000 (15:50 +0200)
Should fix a race condition about freed input usage.

modules/gui/qt4/input_manager.cpp

index 2dfcf8d732e50e7ff0dcbd6722f3ff2b17de06f7..b4b0a90e762aff473e993fecd2bbebe2aea66828 100644 (file)
@@ -590,8 +590,9 @@ void MainInputManager::customEvent( QEvent *event )
     {
         /* we are working as a dialogs provider */
         playlist_t *p_playlist = pl_Yield( p_intf );
-        p_input = p_playlist->p_input;
+        p_input = playlist_CurrentInput( p_playlist );
         emit inputChanged( p_input );
+        vlc_object_release( p_input );
     }
 }