Commit cfaf85e3 authored by Max Kellermann's avatar Max Kellermann

decoder: converted DECODE_ERROR_* to enum

parent ec6d2678
...@@ -34,16 +34,18 @@ enum decoder_state { ...@@ -34,16 +34,18 @@ enum decoder_state {
DECODE_STATE_DECODE DECODE_STATE_DECODE
}; };
#define DECODE_ERROR_NOERROR 0 enum decoder_error {
#define DECODE_ERROR_UNKTYPE 10 DECODE_ERROR_NOERROR = 0,
#define DECODE_ERROR_FILE 20 DECODE_ERROR_UNKTYPE,
DECODE_ERROR_FILE,
};
struct decoder_control { struct decoder_control {
struct notify notify; struct notify notify;
volatile enum decoder_state state; volatile enum decoder_state state;
volatile enum decoder_command command; volatile enum decoder_command command;
volatile uint16_t error; volatile enum decoder_error error;
bool seek_error; bool seek_error;
bool seekable; bool seekable;
volatile double seek_where; volatile double seek_where;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment