The "if" block breaked out of the loop.  That means we can move the
code out of the "else" block.
---

 src/decode.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/decode.c b/src/decode.c
index dff8762..b6e91e9 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -467,9 +467,10 @@ static void decodeParent(void)
                                              "while playing \"%s\"\n",
                                              get_song_url(tmp, dc.next_song));
                                        break;
-                               } else {
-                                       player_wakeup_decoder();
                                }
+
+                               player_wakeup_decoder();
+
                                if (do_pause) {
                                        dropBufferedAudio();
                                        closeAudioDevice();


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to