]> 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 66d249731120d445973e85606b8171555e375bf8..dcfc779957ebcfffd31569a2668fadbb39c6a72c 100644 (file)
 /* System headers */
 #include <InterfaceKit.h>
 #include <StorageKit.h>
-#include <string.h>
 
 /* VLC headers */
-#include <vlc/vlc.h>
-#include <vlc/intf.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
+#include <vlc_interface.h>
 
 /* BeOS interface headers */
 #include "InterfaceWindow.h"
@@ -72,7 +75,7 @@ PlayListWindow::PlayListWindow( BRect frame, const char* name,
     snprintf( psz_tmp, 1024, "%s%s", a, B_UTF8_ELLIPSIS );
 
     p_intf = p_interface;
-    
     SetName( _("playlist") );
 
     // set up the main menu bar
@@ -191,7 +194,7 @@ PlayListWindow::~PlayListWindow()
 bool
 PlayListWindow::QuitRequested()
 {
-    Hide(); 
+    Hide();
     return false;
 }
 
@@ -288,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();
 }