playlist: conditionally stop playlist on deletion of node
commit899653e3cb89dff75f15a053d4628f39d4d2bd4d
authorFilip Roséen <filip@atch.se>
Sun, 21 May 2017 18:48:16 +0000 (21 20:48 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 21 May 2017 19:20:15 +0000 (21 22:20 +0300)
treeedd6d5ce9bba485ef31b98cd7ae18c2def20db19
parent7aa4bec7411fab553f366c756ad3f4c794621a91
playlist: conditionally stop playlist on deletion of node

This fixes a regression introduced by 1ab80a3, where playback would
not stop if a node was deleted through user-interaction.

As a solution, a new flag to playlist_NodeDeleteExplicit has been
introduced so that we can conditionally stop playback of a deleted
item if desired (there are cases where we do not want such mechanisms,
such as when dealing with deletions of empty nodes).

fixes: #18350

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
src/playlist/playlist_internal.h
src/playlist/services_discovery.c
src/playlist/tree.c