var_Set( p_playlist, "intf-change", val );
}
+ free( p_add );
+
return p_item->input.i_id;
}
{
playlist_ItemDelete( p_item );
vlc_mutex_unlock( &p_playlist->object_lock );
+ free( p_add );
return -1;
}
}
val.b_bool = VLC_TRUE;
// var_Set( p_playlist, "intf-change", val );
+//
+ free( p_add );
return p_item->input.i_id;
}
int playlist_Clear( playlist_t * p_playlist )
{
int i;
+ playlist_view_t *p_view;
for( i = p_playlist->i_size; i > 0 ; i-- )
{
playlist_Delete( p_playlist, p_playlist->pp_items[0]->input.i_id );
}
+ for( i = 0 ; i< p_playlist->i_views; i++ )
+ {
+ playlist_ViewEmpty( p_playlist, i, VLC_TRUE );
+ }
return VLC_SUCCESS;
}
if( p_item->input.i_options == 1 ) free( p_item->input.ppsz_options );
}
+ for( ; p_item->i_parents > 0 ; )
+ {
+ struct item_parent_t *p_parent = p_item->pp_parents[0];
+ REMOVE_ELEM( p_item->pp_parents, p_item->i_parents, 0 );
+ free( p_parent );
+ }
+
vlc_mutex_unlock( &p_item->input.lock );
vlc_mutex_destroy( &p_item->input.lock );
SORT_AUTHOR, ORDER_NORMAL );
}
+
return VLC_SUCCESS;
}
val.p_address = p_add;
var_Set( p_playlist, "item-append", val);
+ free( p_add );
+
return p_item;
}
else if( b_delete_items )
{
/* Delete the item here */
+ playlist_Delete( p_playlist, p_root->pp_children[i]->input.i_id );
}
}
/* Delete the node */
if( b_found == VLC_FALSE )
{
struct item_parent_t *p_ip = (struct item_parent_t *)
- malloc(sizeof(struct item_parent_t) );
+ malloc(sizeof(struct item_parent_t) );
p_ip->i_view = i_view;
p_ip->p_parent = p_parent;