Commit 4659534d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

sd: always force item deletion

All SD items should bee inserted into the playlist as read-only.
Deletion would need to be forced. Besides, this is simpler.
parent 19576662
......@@ -98,10 +98,8 @@ static void playlist_sd_item_removed(services_discovery_t *sd,
/* if the item was added under a category and the category node
becomes empty, delete that node as well */
if (node != sds->node && node->i_children == 1)
playlist_NodeDelete(p_playlist, node, true);
playlist_NodeDelete(p_playlist, item, true);
item = node;
playlist_NodeDelete(p_playlist, item, true);
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