X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fbeos%2FInterfaceWindow.cpp;h=cddbc546bb2dc097fb73449571248d2764f13f29;hb=bf099fea1fbc4f6290daf9ebe0365451455ded82;hp=555c6444adfd0f0ef64b1c6fc8ceb2f81d9cd24a;hpb=df61d33b06e2b3cbbe746b2f5a9bea5b370c24ff;p=vlc diff --git a/modules/gui/beos/InterfaceWindow.cpp b/modules/gui/beos/InterfaceWindow.cpp index 555c6444ad..cddbc546bb 100644 --- a/modules/gui/beos/InterfaceWindow.cpp +++ b/modules/gui/beos/InterfaceWindow.cpp @@ -41,7 +41,7 @@ # include "config.h" #endif -#include +#include #include #include @@ -203,14 +203,13 @@ InterfaceWindow::InterfaceWindow( intf_thread_t * _p_intf, BRect frame, fLastUpdateTime( system_time() ), fSettings( new BMessage( 'sett' ) ) { - p_playlist = (playlist_t *) - vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); + p_playlist = pl_Hold( p_intf ); var_AddCallback( p_playlist, "intf-change", PlaylistChanged, this ); var_AddCallback( p_playlist, "item-change", PlaylistChanged, this ); var_AddCallback( p_playlist, "item-append", PlaylistChanged, this ); var_AddCallback( p_playlist, "item-deleted", PlaylistChanged, this ); - var_AddCallback( p_playlist, "playlist-current", PlaylistChanged, this ); + var_AddCallback( p_playlist, "item-current", PlaylistChanged, this ); char psz_tmp[1024]; #define ADD_ELLIPSIS( a ) \ @@ -1113,7 +1112,6 @@ InterfaceWindow::_StoreSettings() { /* Save the volume */ config_PutInt( p_intf, "volume", p_mediaControl->GetVolume() ); - config_SaveConfigFile( p_intf, "main" ); /* Save the windows positions */ if ( fSettings->ReplaceRect( "main frame", Frame() ) != B_OK )