]> git.sesse.net Git - vlc/blobdiff - modules/gui/beos/PlayListWindow.cpp
Use pl_Yield and pl_Release instead of vlc_object_find.
[vlc] / modules / gui / beos / PlayListWindow.cpp
index 585523810d07063f59dc8a6a076b501506e069d1..d05036fc196d6b9fee0ee4ea18abb31576ab22e9 100644 (file)
@@ -291,11 +291,10 @@ PlayListWindow::UpdatePlaylist( bool rebuild )
     if( rebuild )
         fListView->RebuildList();
 
-    p_playlist = (playlist_t *)
-        vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+    p_playlist = pl_Yield( p_intf );
     fListView->SetCurrent( p_playlist->i_index );
     fListView->SetPlaying( p_playlist->status.i_status == PLAYLIST_RUNNING );
-    vlc_object_release( p_playlist );
+    pl_Release( p_playlist );
 
     _CheckItemsEnableState();
 }