From dad868cf20ffd2d7b510af70d762bbf8c7ed1f38 Mon Sep 17 00:00:00 2001 From: waker Date: Thu, 6 Sep 2012 20:49:59 +0200 Subject: alsa: added a hack to avoid releasing device when user is switching tracks --- streamer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'streamer.c') 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) { -- cgit v1.2.3