diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-04-20 21:14:46 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2010-04-20 21:26:43 +0200 |
commit | 3072c5acdbb50f7571e5a72c8acb9146042968fb (patch) | |
tree | a6f2f329834737ea4a61fa9fa85bbc556d82117a | |
parent | 3adafe80e90c14712ab94d67ec0627f45e787ec3 (diff) | |
download | pianobar-3072c5acdbb50f7571e5a72c8acb9146042968fb.tar.gz pianobar-3072c5acdbb50f7571e5a72c8acb9146042968fb.tar.bz2 pianobar-3072c5acdbb50f7571e5a72c8acb9146042968fb.zip |
Don't stop playback when showing station list
Original patch by jordanlewis@github.
-rw-r--r-- | src/ui_act.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ui_act.c b/src/ui_act.c index bb0769b..ba7dd1c 100644 --- a/src/ui_act.c +++ b/src/ui_act.c @@ -391,12 +391,14 @@ void BarUiActRenameStation (BAR_KS_ARGS) { /* play another station */ void BarUiActSelectStation (BAR_KS_ARGS) { - BarUiDoSkipSong (player); - PianoDestroyPlaylist (*curSong); - *curSong = NULL; - *curStation = BarUiSelectStation (ph, "Select station: ", curFd); - if (*curStation != NULL) { + PianoStation_t *newStation = BarUiSelectStation (ph, "Select station: ", + curFd); + if (newStation != NULL) { + *curStation = newStation; BarUiPrintStation ((*curStation)); + BarUiDoSkipSong (player); + PianoDestroyPlaylist (*curSong); + *curSong = NULL; } } |