diff options
author | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:04 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:04 +0200 |
commit | 8d3942e0c3b4108e8968e914da75bf7c6c43f408 (patch) | |
tree | 69d7eba9eb5f0273a61698169088e0ee70cdb297 /src/playerData.c | |
parent | 180d78a8e631cb4d48ef468709099a8c43d7ef51 (diff) | |
download | mpd-8d3942e0c3b4108e8968e914da75bf7c6c43f408.tar.gz mpd-8d3942e0c3b4108e8968e914da75bf7c6c43f408.tar.xz mpd-8d3942e0c3b4108e8968e914da75bf7c6c43f408.zip |
merged start, stop, seek into DecoderControl.command
Much of the existing code queries all three variables sequentially.
Since only one of them can be set at a time, this can be optimized and
unified by merging all of them into one enum variable. Later, the
"command" checks can be expressed in a "switch" statement.
Diffstat (limited to 'src/playerData.c')
-rw-r--r-- | src/playerData.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/playerData.c b/src/playerData.c index 3934d0c6f..f268c85c6 100644 --- a/src/playerData.c +++ b/src/playerData.c @@ -84,6 +84,7 @@ void initPlayerData(void) notify_init(&dc.notify); dc.state = DECODE_STATE_STOP; + dc.command = DECODE_COMMAND_NONE; dc.error = DECODE_ERROR_NOERROR; } |