author | Max Kellermann <max@duempel.org> | |
Sun, 4 Oct 2009 16:24:00 +0000 (18:24 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Sun, 4 Oct 2009 16:24:00 +0000 (18:24 +0200) | ||
commit | 0fdc462debade7b7a4e2ae1031172a870fb833b6 | |
tree | 57c009d21ee07d3bd206c7636b1da862ec7df50c | tree | snapshot |
parent | 71c696cd5fc03f46a0b3e28df1ec6596e570694a | commit | diff |
main: don't call mpdclient_update() for clock update
When the "update timer" is running because the clock is enabled, don't
call mpdclient_update() in each tick. For the clock, it's enough to
update MPD only when an idle event occurs. While MPD is playing, we
still need MPD updates, beacuse we need the new "elapsed" time.
When the "update timer" is running because the clock is enabled, don't
call mpdclient_update() in each tick. For the clock, it's enough to
update MPD only when an idle event occurs. While MPD is playing, we
still need MPD updates, beacuse we need the new "elapsed" time.
src/main.c | diff | blob | history |