Commit 0f7b859f authored by Yoann Peronneau's avatar Yoann Peronneau

* playlist/tree.c: when removing a node, don't forget to remove it from its parent!

parent d6bdbbab
...@@ -179,6 +179,13 @@ int playlist_NodeDelete( playlist_t *p_playlist, playlist_item_t *p_root, ...@@ -179,6 +179,13 @@ int playlist_NodeDelete( playlist_t *p_playlist, playlist_item_t *p_root,
{ {
REMOVE_ELEM( p_playlist->pp_all_items, p_playlist->i_all_size, i ); REMOVE_ELEM( p_playlist->pp_all_items, p_playlist->i_all_size, i );
} }
/* Remove the item from its parent */
if( p_root->p_parent )
{
playlist_NodeRemoveItem( p_playlist, p_root, p_root->p_parent );
}
playlist_ItemDelete( p_root ); playlist_ItemDelete( p_root );
} }
return VLC_SUCCESS; return VLC_SUCCESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment