]> git.sesse.net Git - vlc/blobdiff - modules/gui/beos/PlayListWindow.cpp
Use pl_Release with the right argument.
[vlc] / modules / gui / beos / PlayListWindow.cpp
index e73521cddaf01d1692ff2533dbfdcc4f9667655b..dcfc779957ebcfffd31569a2668fadbb39c6a72c 100644 (file)
@@ -34,7 +34,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_interface.h>
 
 /* BeOS interface headers */
@@ -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_intf );
 
     _CheckItemsEnableState();
 }