# include "config.h"
#endif
-#include <vlc/vlc.h>
+#include <vlc_common.h>
#include <vlc_aout.h>
#include <vlc_interface.h>
fLastUpdateTime( system_time() ),
fSettings( new BMessage( 'sett' ) )
{
- p_playlist = (playlist_t *)
- vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+ p_playlist = pl_Yield( p_intf );
var_AddCallback( p_playlist, "intf-change", PlaylistChanged, this );
var_AddCallback( p_playlist, "item-change", PlaylistChanged, this );
memset( psz_uri, 0, 1024 );
snprintf( psz_uri, 1024, "dvdnav:%s", psz_device );
playlist_Add( p_playlist, psz_uri, psz_device,
- PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END, VLC_TRUE );
+ PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END, true );
}
UpdatePlaylist();
}
break;
}
- vlc_bool_t b_remove = ( p_message->WasDropped() &&
+ bool b_remove = ( p_message->WasDropped() &&
!( modifiers() & B_SHIFT_KEY ) );
if( b_remove && p_playlist )
{
- playlist_Clear( p_playlist, VLC_TRUE );
+ playlist_Clear( p_playlist, true );
}
entry_ref ref;
if( p_playlist )
{
playlist_Add( p_playlist, path.Path(), NULL,
- PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END, VLC_TRUE );
+ PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END, true );
}
}