aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:08 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:08 +0200
commit772d3da98a31b5cefa9d4de0dd5056fb19eae00f (patch)
tree8adb7d5598917c3e64483df29171b8b5508cb8a9 /src/decode.c
parentf1a014d094a6788a062967d7940ccfae96093144 (diff)
downloadmpd-772d3da98a31b5cefa9d4de0dd5056fb19eae00f.tar.gz
mpd-772d3da98a31b5cefa9d4de0dd5056fb19eae00f.tar.xz
mpd-772d3da98a31b5cefa9d4de0dd5056fb19eae00f.zip
no camel case in struct decoder_plugin
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c42
1 files changed, 22 insertions, 20 deletions
diff --git a/src/decode.c b/src/decode.c
index 176eb6fb9..42b8adb02 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -244,14 +244,14 @@ static void decodeStart(void)
/* first we try mime types: */
while (ret && (plugin = getInputPluginFromMimeType(inStream.mime, next++))) {
- if (!plugin->streamDecodeFunc)
+ if (!plugin->stream_decode_func)
continue;
- if (!(plugin->streamTypes & INPUT_PLUGIN_STREAM_URL))
+ if (!(plugin->stream_types & INPUT_PLUGIN_STREAM_URL))
continue;
- if (plugin->tryDecodeFunc
- && !plugin->tryDecodeFunc(&inStream))
+ if (plugin->try_decode_func
+ && !plugin->try_decode_func(&inStream))
continue;
- ret = plugin->streamDecodeFunc(&decoder, &inStream);
+ ret = plugin->stream_decode_func(&decoder, &inStream);
break;
}
@@ -260,16 +260,17 @@ static void decodeStart(void)
const char *s = getSuffix(path_max_utf8);
next = 0;
while (ret && (plugin = getInputPluginFromSuffix(s, next++))) {
- if (!plugin->streamDecodeFunc)
+ if (!plugin->stream_decode_func)
continue;
- if (!(plugin->streamTypes &
+ if (!(plugin->stream_types &
INPUT_PLUGIN_STREAM_URL))
continue;
- if (plugin->tryDecodeFunc &&
- !plugin->tryDecodeFunc(&inStream))
+ if (plugin->try_decode_func &&
+ !plugin->try_decode_func(&inStream))
continue;
decoder.plugin = plugin;
- ret = plugin->streamDecodeFunc(&decoder, &inStream);
+ ret = plugin->stream_decode_func(&decoder,
+ &inStream);
break;
}
}
@@ -281,31 +282,32 @@ static void decodeStart(void)
* need to check for stream{Types,DecodeFunc} */
if ((plugin = getInputPluginFromName("mp3"))) {
decoder.plugin = plugin;
- ret = plugin->streamDecodeFunc(&decoder,
- &inStream);
+ ret = plugin->stream_decode_func(&decoder,
+ &inStream);
}
}
} else {
unsigned int next = 0;
const char *s = getSuffix(path_max_utf8);
while (ret && (plugin = getInputPluginFromSuffix(s, next++))) {
- if (!plugin->streamTypes & INPUT_PLUGIN_STREAM_FILE)
+ if (!plugin->stream_types & INPUT_PLUGIN_STREAM_FILE)
continue;
- if (plugin->tryDecodeFunc &&
- !plugin->tryDecodeFunc(&inStream))
+ if (plugin->try_decode_func &&
+ !plugin->try_decode_func(&inStream))
continue;
- if (plugin->fileDecodeFunc) {
+ if (plugin->file_decode_func) {
closeInputStream(&inStream);
close_instream = 0;
decoder.plugin = plugin;
- ret = plugin->fileDecodeFunc(&decoder,
- path_max_fs);
+ ret = plugin->file_decode_func(&decoder,
+ path_max_fs);
break;
- } else if (plugin->streamDecodeFunc) {
+ } else if (plugin->stream_decode_func) {
decoder.plugin = plugin;
- ret = plugin->streamDecodeFunc(&decoder, &inStream);
+ ret = plugin->stream_decode_func(&decoder,
+ &inStream);
break;
}
}