]> git.sesse.net Git - vlc/blobdiff - modules/gui/beos/InterfaceWindow.cpp
Use pl_Yield and pl_Release instead of vlc_object_find.
[vlc] / modules / gui / beos / InterfaceWindow.cpp
index 9e6a7dd730bd9931376693c7274e17246376e80d..82c7563e6f1ba0d3c90250d74f8702a9c2d3ba0c 100644 (file)
@@ -203,8 +203,7 @@ 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_Yield( p_intf );
 
     var_AddCallback( p_playlist, "intf-change", PlaylistChanged, this );
     var_AddCallback( p_playlist, "item-change", PlaylistChanged, this );
@@ -355,7 +354,7 @@ InterfaceWindow::~InterfaceWindow()
     }
     if( p_playlist )
     {
-        vlc_object_release( p_playlist );
+        pl_Release( p_playlist );
     }
 #if 0
     if( fPlaylistWindow )