]> git.sesse.net Git - vlc/blobdiff - modules/gui/wince/open.cpp
Use pl_Release with the right argument.
[vlc] / modules / gui / wince / open.cpp
index 5d76b9bf1e50f664a60fdb08337968b0fc751f84..6a2d3e12239d2c383ac191bd50b36e25ad77cba0 100644 (file)
@@ -609,9 +609,7 @@ void OpenDialog::OnOk()
     ComboBox_SetCurSel( mrl_combo, ComboBox_GetCount( mrl_combo ) - 1 );
 
     /* Update the playlist */
-    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 ) return;
 
     for( int i = 0; i < i_args; i++ )
@@ -657,7 +655,7 @@ void OpenDialog::OnOk()
         free( pp_args[i_args] );
         if( !i_args ) free( pp_args );
     }
-    vlc_object_release( p_playlist );
+    pl_Release( p_intf );
 }
 
 /*****************************************************************************