playlist/thread: do not stop on removed node
commit50309d3a55124a9804d75ab5a37a4e6beb075b68
authorFilip Roséen <filip@atch.se>
Thu, 18 May 2017 10:01:14 +0000 (18 12:01 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 18 May 2017 15:46:33 +0000 (18 18:46 +0300)
tree9694286af6c20376e6a81706fc19ffaa6abfcd9b
parenta1008e5d94fe80981dbe470bb67bfd2b3b22557c
playlist/thread: do not stop on removed node

If get_current_status_item( p_playlist ) returns NULL there are no
previously "playing" entity on automatic next, meaning that it is very
confusing if the playlist stops at such (non-existing) entity.

Given a flat playlist, a node containing children will be removed and
the children posted to the node's parent, meaning that the original
node is removed. Given that the node is removed, stopping after
"playback" of such entity looks like we simply did nothing (imagine a
directory containing no children).

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