summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-09-06 20:49:59 +0200
committerGravatar waker <wakeroid@gmail.com>2012-09-06 20:49:59 +0200
commitdad868cf20ffd2d7b510af70d762bbf8c7ed1f38 (patch)
tree4a3b126a783ded4f969a7c964bda23eddd058ab6 /streamer.c
parenta87d6d7c51eabda38b935bc8204a4a28ba1e74d8 (diff)
alsa: added a hack to avoid releasing device when user is switching tracks
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) {