Commit df366fcf authored by Antoine Cellerier's avatar Antoine Cellerier

Check that destination node is really a node.

parent 94d5831b
......@@ -894,6 +894,8 @@ int playlist_TreeMove( playlist_t * p_playlist, playlist_item_t *p_item,
playlist_item_t *p_detach = NULL;
struct item_parent_t *p_parent;
if( p_node->i_children == -1 ) return VLC_EGENERIC;
/* Detach from the parent */
for( i = 0 ; i< p_item->i_parents; i++ )
{
......
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