]> git.sesse.net Git - vlc/blobdiff - modules/gui/wince/iteminfo.cpp
Fix the activation or not of advanced buttons in fullscreen controller
[vlc] / modules / gui / wince / iteminfo.cpp
index 5b4062370de868b2d1bbcc93ded3d088aa03d50f..c0f967f40b38b98cc45b8c4a0c3b53d544301595 100644 (file)
@@ -269,12 +269,11 @@ void ItemInfoDialog::OnOk()
     vlc_mutex_lock( &p_item->input.lock );
     bool b_old_enabled = p_item->b_enabled;
 
-    playlist_t * p_playlist = (playlist_t *)
-        vlc_object_find( p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+    playlist_t * p_playlist = pl_Yield( p_intf );
     if( p_playlist != NULL )
     {
         b_state = SendMessage( enabled_checkbox, BM_GETCHECK, 0, 0 );
-        vlc_object_release( p_playlist );
+        pl_Release( p_intf );
     }
 
     p_item->b_enabled = (b_state & BST_CHECKED) ? true : false ;