diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-07-02 21:08:25 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-07-02 21:08:25 +0200 |
commit | c3cdc31f0d3b2fd3313cba5044e1207adba81048 (patch) | |
tree | abb478451598fd038bfd0e8a0ada849cd4c46765 /libpiano/src/main.c | |
parent | a711635a5a031107da3ecc0b0e1c939277e34572 (diff) | |
download | pianobar-c3cdc31f0d3b2fd3313cba5044e1207adba81048.tar.gz pianobar-c3cdc31f0d3b2fd3313cba5044e1207adba81048.tar.bz2 pianobar-c3cdc31f0d3b2fd3313cba5044e1207adba81048.zip |
client: Show real station when playing quickmix song
Diffstat (limited to 'libpiano/src/main.c')
-rw-r--r-- | libpiano/src/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libpiano/src/main.c b/libpiano/src/main.c index d8d9498..4e72629 100644 --- a/libpiano/src/main.c +++ b/libpiano/src/main.c @@ -141,6 +141,7 @@ void PianoDestroyPlaylist (PianoHandle_t *ph) { PianoFree (curSong->title, 0); PianoFree (curSong->userSeed, 0); PianoFree (curSong->identity, 0); + PianoFree (curSong->stationId, 0); lastSong = curSong; curSong = curSong->next; PianoFree (lastSong, sizeof (*lastSong)); @@ -653,3 +654,14 @@ PianoReturn_t PianoSetQuickmix (PianoHandle_t *ph) { return ret; } + +PianoStation_t *PianoFindStationById (PianoStation_t *stations, + char *searchStation) { + while (stations != NULL) { + if (strcmp (stations->id, searchStation) == 0) { + return stations; + } + stations = stations->next; + } + return NULL; +} |