aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_thread.c
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_thread.c
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 '')
-rw-r--r--src/decoder_thread.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index 7c6f649a3..a468f1069 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -108,8 +108,6 @@ static void decoder_run(void)
while ((plugin = decoder_plugin_from_mime_type(input_stream.mime, next++))) {
if (plugin->stream_decode == NULL)
continue;
- if (!(plugin->stream_types & INPUT_PLUGIN_STREAM_URL))
- continue;
if (!decoder_try_decode(plugin, &input_stream))
continue;
ret = plugin->stream_decode(&decoder, &input_stream);
@@ -123,9 +121,6 @@ static void decoder_run(void)
while ((plugin = decoder_plugin_from_suffix(s, next++))) {
if (plugin->stream_decode == NULL)
continue;
- if (!(plugin->stream_types &
- INPUT_PLUGIN_STREAM_URL))
- continue;
if (!decoder_try_decode(plugin, &input_stream))
continue;
decoder.plugin = plugin;
@@ -150,9 +145,6 @@ static void decoder_run(void)
unsigned int next = 0;
const char *s = getSuffix(uri);
while ((plugin = decoder_plugin_from_suffix(s, next++))) {
- if (!plugin->stream_types & INPUT_PLUGIN_STREAM_FILE)
- continue;
-
if (!decoder_try_decode(plugin, &input_stream))
continue;