diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-04-13 14:25:15 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-04-13 14:25:15 +0200 |
commit | 51437f299b9c310969284c16507c028b5aa0941c (patch) | |
tree | 5af1720045be12f779916e90f681fc25132e7502 /src/main.c | |
parent | 998cd10ac2a0148052e03471d019aafdd2e14f8c (diff) | |
download | pianobar-51437f299b9c310969284c16507c028b5aa0941c.tar.gz pianobar-51437f299b9c310969284c16507c028b5aa0941c.tar.bz2 pianobar-51437f299b9c310969284c16507c028b5aa0941c.zip |
More events added
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -203,10 +203,12 @@ int main (int argc, char **argv) { curSong = curSong->next; } if (curSong == NULL) { + PianoReturn_t pRet = PIANO_RET_ERR; + BarUiMsg (MSG_INFO, "Receiving new playlist... "); PianoDestroyPlaylist (&ph); - if (BarUiPrintPianoStatus (PianoGetPlaylist (&ph, - curStation->id, settings.audioFormat)) != + if ((pRet = BarUiPrintPianoStatus (PianoGetPlaylist (&ph, + curStation->id, settings.audioFormat))) != PIANO_RET_OK) { curStation = NULL; } else { @@ -216,6 +218,8 @@ int main (int argc, char **argv) { curStation = NULL; } } + BarUiStartEventCmd (&settings, "stationfetchplaylist", + curStation, curSong, pRet); } /* song ready to play */ if (curSong != NULL) { @@ -238,7 +242,7 @@ int main (int argc, char **argv) { /* throw event */ BarUiStartEventCmd (&settings, "songstart", curStation, - curSong); + curSong, PIANO_RET_OK); /* start player */ pthread_create (&playerThread, NULL, BarPlayerThread, |