aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-15 18:33:28 +0100
committerMax Kellermann <max@duempel.org>2009-02-15 18:33:28 +0100
commit3e3c524264ceedb9aff3291ed9f7b516250d428e (patch)
treed424a9eef99f3f01181fa5a039fc8609b978fa90 /src/decoder_thread.c
parenta28287073b6ced1ab2b3c7dcc0a1168d9e7ac7ea (diff)
downloadmpd-3e3c524264ceedb9aff3291ed9f7b516250d428e.tar.gz
mpd-3e3c524264ceedb9aff3291ed9f7b516250d428e.tar.xz
mpd-3e3c524264ceedb9aff3291ed9f7b516250d428e.zip
decoder_plugin: added inline wrapper functions
Increase code readability, always use the wrapper functions instead of calling the plugin method pointers directly.
Diffstat (limited to '')
-rw-r--r--src/decoder_thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index 97555f44d..07eea2f65 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -50,7 +50,7 @@ decoder_stream_decode(const struct decoder_plugin *plugin,
/* rewind the stream, so each plugin gets a fresh start */
input_stream_seek(input_stream, 0, SEEK_SET);
- plugin->stream_decode(decoder, input_stream);
+ decoder_plugin_stream_decode(plugin, decoder, input_stream);
assert(dc.state == DECODE_STATE_START ||
dc.state == DECODE_STATE_DECODE);
@@ -71,7 +71,7 @@ decoder_file_decode(const struct decoder_plugin *plugin,
assert(path[0] == '/');
assert(dc.state == DECODE_STATE_START);
- plugin->file_decode(decoder, path);
+ decoder_plugin_file_decode(plugin, decoder, path);
assert(dc.state == DECODE_STATE_START ||
dc.state == DECODE_STATE_DECODE);