- /* update playlist interface */
- p_playlist = (playlist_t *) vlc_object_find(
- p_intf, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
- if (p_playlist != NULL)
- {
- p_liststore = gtk_list_store_new (3,
- G_TYPE_STRING,
- G_TYPE_STRING,
- G_TYPE_UINT); /* Hidden index */
- PlaylistRebuildListStore(p_liststore, p_playlist);
- gtk_tree_view_set_model(p_intf->p_sys->p_tvplaylist, (GtkTreeModel*) p_liststore);
- g_object_unref(p_liststore);
- vlc_object_release( p_playlist );
- }
+ /* update playlist interface */
+ p_playlist = pl_Yield( p_intf );
+ if (p_playlist != NULL)
+ {
+ p_liststore = gtk_list_store_new (3,
+ G_TYPE_STRING,
+ G_TYPE_STRING,
+ G_TYPE_UINT); /* Hidden index */
+ PlaylistRebuildListStore(p_intf, p_liststore, p_playlist);
+ gtk_tree_view_set_model(p_intf->p_sys->p_tvplaylist, (GtkTreeModel*) p_liststore);
+ g_object_unref(p_liststore);
+ pl_Release( p_intf );