diff options
author | Matthew Beckler <matthew@mbeckler.org> | 2011-01-13 17:18:25 -0500 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2011-01-15 12:37:21 +0100 |
commit | d166a010670ac829d1e6d4f37dbac075d13d9b26 (patch) | |
tree | bbca581c2de6c88fad0ecdf0e0be1c761449a15b /src/main.c | |
parent | c5c4dcc9cd471aa060be568491141703b96ae0f8 (diff) | |
download | pianobar-d166a010670ac829d1e6d4f37dbac075d13d9b26.tar.gz pianobar-d166a010670ac829d1e6d4f37dbac075d13d9b26.tar.bz2 pianobar-d166a010670ac829d1e6d4f37dbac075d13d9b26.zip |
Send station list to eventcmd
See issue #76
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -249,8 +249,8 @@ static void BarMainGetPlaylist (BarApp_t *app) { } } BarUiStartEventCmd (&app->settings, "stationfetchplaylist", - app->curStation, app->playlist, &app->player, pRet, - wRet); + app->curStation, app->playlist, &app->player, app->ph.stations, + pRet, wRet); } /* start new player thread @@ -286,7 +286,7 @@ static void BarMainStartPlayback (BarApp_t *app, pthread_t *playerThread) { /* throw event */ BarUiStartEventCmd (&app->settings, "songstart", - app->curStation, app->playlist, &app->player, + app->curStation, app->playlist, &app->player, app->ph.stations, PIANO_RET_OK, WAITRESS_RET_OK); /* prevent race condition, mode must _not_ be FREED if @@ -304,7 +304,8 @@ static void BarMainPlayerCleanup (BarApp_t *app, pthread_t *playerThread) { void *threadRet; BarUiStartEventCmd (&app->settings, "songfinish", app->curStation, - app->playlist, &app->player, PIANO_RET_OK, WAITRESS_RET_OK); + app->playlist, &app->player, app->ph.stations, PIANO_RET_OK, + WAITRESS_RET_OK); /* FIXME: pthread_join blocks everything if network connection * is hung up e.g. */ |