summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--streamer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/streamer.c b/streamer.c
index 5da0d08f..2a5d22bc 100644
--- a/streamer.c
+++ b/streamer.c
@@ -1199,7 +1199,9 @@ 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);