]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/input_manager.cpp
Replaced a certain amount of vlc_object_find by pl_Yield
[vlc] / modules / gui / qt4 / input_manager.cpp
index 1280485f4e5aefe4b710d8a71f870d47998204f6..40c4e66edcc6cc5e75065677715b51782db85e23 100644 (file)
@@ -545,13 +545,9 @@ void MainInputManager::customEvent( QEvent *event )
     else
     {
         /* we are working as a dialogs provider */
-        playlist_t *p_playlist = (playlist_t *) vlc_object_find( p_intf,
-                                       VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
-        if( p_playlist )
-        {
-            p_input = p_playlist->p_input;
-            emit inputChanged( p_input );
-        }
+        playlist_t *p_playlist = pl_Yield( p_intf );
+        p_input = p_playlist->p_input;
+        emit inputChanged( p_input );
     }
 }