summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index 86e90be9..60c9f6d9 100644
--- a/playlist.c
+++ b/playlist.c
@@ -396,6 +396,9 @@ pl_remove (playItem_t *it) {
if (!it)
return -1;
pl_count--;
+ if (playlist_current_ptr == it) {
+ playlist_current_ptr = NULL;
+ }
// remove from shuffle list
{