summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/streamer.c b/streamer.c
index 3642386f..ad67ab07 100644
--- a/streamer.c
+++ b/streamer.c
@@ -1359,6 +1359,10 @@ void
streamer_set_nextsong (int song, int pstate) {
// pthread_t tid = pthread_self ();
// assert (tid != streamer_tid);
+ if (pstate == 0) {
+ // this is a stop query -- clear the queue
+ handler_reset (handler);
+ }
streamer_abort_files ();
handler_push (handler, STR_EV_PLAY_TRACK_IDX, 0, song, pstate);
}