summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/streamer.c b/streamer.c
index a017a19f..f52ae450 100644
--- a/streamer.c
+++ b/streamer.c
@@ -1220,9 +1220,6 @@ streamer_thread (void *ctx) {
bytes_until_next_song = -1;
trace ("nextsong=-2\n");
nextsong = -1;
- streamer_unlock ();
- output->stop ();
- streamer_lock ();
if (playing_track) {
trace ("sending songfinished to plugins [1]\n");
send_songfinished (playing_track);
@@ -1240,6 +1237,7 @@ streamer_thread (void *ctx) {
pl_item_unref (from);
}
streamer_unlock ();
+ output->stop ();
continue;
}
else if (output->state () == OUTPUT_STATE_STOPPED) {