diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2008-09-10 20:43:17 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2008-09-10 20:43:17 +0200 |
commit | 1f170cf9359029e3899ab501ad94f58643229bb8 (patch) | |
tree | b882b2ce889f5265ef5f0fa0142e3e1630afe198 /src | |
parent | a0235218909a33adbdc6eb4eb3afff2911a5987b (diff) | |
download | pianobar-1f170cf9359029e3899ab501ad94f58643229bb8.tar.gz pianobar-1f170cf9359029e3899ab501ad94f58643229bb8.tar.bz2 pianobar-1f170cf9359029e3899ab501ad94f58643229bb8.zip |
Revert "Don't poll *that* often"
This reverts commit a0235218909a33adbdc6eb4eb3afff2911a5987b.
Song changes don't work sometimes.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -204,10 +204,7 @@ int main (int argc, char **argv) { } /* in the meantime: wait for user actions */ - /* FIXME: uhm, this may work, but I guess there's a better solution. */ - if (poll (&polls, 1, (player.mode >= PLAYER_INITIALIZED && - player.mode < PLAYER_FINISHED_PLAYBACK && - player.doPause == 0 ? 1000 : -1)) > 0) { + if (poll (&polls, 1, 1000) > 0) { read (fileno (stdin), &buf, sizeof (buf)); curShortcut = settings.keys; while (curShortcut != NULL) { |