aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderThread.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-21 20:31:34 +0200
committerMax Kellermann <max@duempel.org>2013-10-21 20:31:34 +0200
commit72af3c0489f8bc417189b6dd48b8db4f380e4ba3 (patch)
tree268fc2b8579d67d8d1c14acf7d054f09c2500820 /src/DecoderThread.cxx
parent65e54f6ed1152002ba736c6e30518a934f82a7fe (diff)
downloadmpd-72af3c0489f8bc417189b6dd48b8db4f380e4ba3.tar.gz
mpd-72af3c0489f8bc417189b6dd48b8db4f380e4ba3.tar.xz
mpd-72af3c0489f8bc417189b6dd48b8db4f380e4ba3.zip
decoder_plugin: rename struct to DecoderPlugin
Diffstat (limited to 'src/DecoderThread.cxx')
-rw-r--r--src/DecoderThread.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/DecoderThread.cxx b/src/DecoderThread.cxx
index 551b96a13..83de64670 100644
--- a/src/DecoderThread.cxx
+++ b/src/DecoderThread.cxx
@@ -111,7 +111,7 @@ decoder_input_stream_open(decoder_control &dc, const char *uri)
}
static bool
-decoder_stream_decode(const decoder_plugin &plugin,
+decoder_stream_decode(const DecoderPlugin &plugin,
struct decoder *decoder,
struct input_stream *input_stream)
{
@@ -144,7 +144,7 @@ decoder_stream_decode(const decoder_plugin &plugin,
}
static bool
-decoder_file_decode(const decoder_plugin &plugin,
+decoder_file_decode(const DecoderPlugin &plugin,
struct decoder *decoder, const char *path)
{
assert(plugin.file_decode != nullptr);
@@ -176,9 +176,9 @@ decoder_file_decode(const decoder_plugin &plugin,
* Hack to allow tracking const decoder plugins in a GSList.
*/
static inline gpointer
-deconst_plugin(const struct decoder_plugin *plugin)
+deconst_plugin(const struct DecoderPlugin *plugin)
{
- return const_cast<struct decoder_plugin *>(plugin);
+ return const_cast<struct DecoderPlugin *>(plugin);
}
/**
@@ -192,7 +192,7 @@ decoder_run_stream_mime_type(struct decoder *decoder, struct input_stream *is,
{
assert(tried_r != nullptr);
- const struct decoder_plugin *plugin;
+ const struct DecoderPlugin *plugin;
unsigned int next = 0;
if (is->mime.empty())
@@ -229,7 +229,7 @@ decoder_run_stream_suffix(struct decoder *decoder, struct input_stream *is,
assert(tried_r != nullptr);
const char *suffix = uri_get_suffix(uri);
- const struct decoder_plugin *plugin = nullptr;
+ const struct DecoderPlugin *plugin = nullptr;
if (suffix == nullptr)
return false;
@@ -257,7 +257,7 @@ decoder_run_stream_suffix(struct decoder *decoder, struct input_stream *is,
static bool
decoder_run_stream_fallback(struct decoder *decoder, struct input_stream *is)
{
- const struct decoder_plugin *plugin;
+ const struct DecoderPlugin *plugin;
plugin = decoder_plugin_from_name("mad");
return plugin != nullptr && plugin->stream_decode != nullptr &&
@@ -326,7 +326,7 @@ decoder_run_file(struct decoder *decoder, const char *path_fs)
{
decoder_control &dc = decoder->dc;
const char *suffix = uri_get_suffix(path_fs);
- const struct decoder_plugin *plugin = nullptr;
+ const struct DecoderPlugin *plugin = nullptr;
if (suffix == nullptr)
return false;