From 8d3942e0c3b4108e8968e914da75bf7c6c43f408 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:04 +0200 Subject: 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. --- src/playerData.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/playerData.c') 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; } -- cgit v1.2.3