diff options
author | waker <wakeroid@gmail.com> | 2012-09-06 20:49:59 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-09-06 20:49:59 +0200 |
commit | dad868cf20ffd2d7b510af70d762bbf8c7ed1f38 (patch) | |
tree | 4a3b126a783ded4f969a7c964bda23eddd058ab6 /streamer.c | |
parent | a87d6d7c51eabda38b935bc8204a4a28ba1e74d8 (diff) |
alsa: added a hack to avoid releasing device when user is switching tracks
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) { |