diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -248,6 +248,9 @@ int main (int argc, char **argv) { BarUiStartEventCmd (&settings, "songstart", curStation, playlist, &player, PIANO_RET_OK); + /* prevent race condition, mode must _not_ be FREED if + * thread has been started */ + player.mode = PLAYER_STARTING; /* start player */ pthread_create (&playerThread, NULL, BarPlayerThread, &player); |