aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_api.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-04 17:10:19 +0100
committerMax Kellermann <max@duempel.org>2008-11-04 17:10:19 +0100
commit85a7d1a1487dd29705b6df5175727d565350c784 (patch)
treeffc41cf98b259576d938c2152809f37ffae24ba5 /src/decoder_api.h
parent59c20e5afe8449204298c7d801b93636be237b4d (diff)
downloadmpd-85a7d1a1487dd29705b6df5175727d565350c784.tar.gz
mpd-85a7d1a1487dd29705b6df5175727d565350c784.tar.xz
mpd-85a7d1a1487dd29705b6df5175727d565350c784.zip
decoder: removed stream_types
Instead of checking the stream_types bit set, we can simply check whether the methods stream_decode() and file_decode() are implemented.
Diffstat (limited to 'src/decoder_api.h')
-rw-r--r--src/decoder_api.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/decoder_api.h b/src/decoder_api.h
index 486712d99..f4ef49525 100644
--- a/src/decoder_api.h
+++ b/src/decoder_api.h
@@ -35,11 +35,6 @@
#include <stdbool.h>
-/* valid values for streamTypes in the InputPlugin struct: */
-#define INPUT_PLUGIN_STREAM_FILE 0x01
-#define INPUT_PLUGIN_STREAM_URL 0x02
-
-
enum decoder_command {
DECODE_COMMAND_NONE = 0,
DECODE_COMMAND_START,
@@ -94,9 +89,6 @@ struct decoder_plugin {
*/
struct tag *(*tag_dup)(const char *file);
- /* one or more of the INPUT_PLUGIN_STREAM_* values OR'd together */
- unsigned char stream_types;
-
/* last element in these arrays must always be a NULL: */
const char *const*suffixes;
const char *const*mime_types;