X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fbeos%2FPlayListWindow.cpp;h=dcfc779957ebcfffd31569a2668fadbb39c6a72c;hb=415ada5a217873f17211bb7b3d96ce45d6d67263;hp=66d249731120d445973e85606b8171555e375bf8;hpb=8e7484b4ff79cc0d22ee0a61ee372dee78431eed;p=vlc diff --git a/modules/gui/beos/PlayListWindow.cpp b/modules/gui/beos/PlayListWindow.cpp index 66d2497311..dcfc779957 100644 --- a/modules/gui/beos/PlayListWindow.cpp +++ b/modules/gui/beos/PlayListWindow.cpp @@ -28,11 +28,14 @@ /* System headers */ #include #include -#include /* VLC headers */ -#include -#include +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include +#include /* 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(); }