aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/audiofile_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:05 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:05 +0200
commit0d45870cea6836cd48e6953f4e67756b2502e22c (patch)
treeb869b8bdab13374f21347bd77a32661ddcf74b88 /src/inputPlugins/audiofile_plugin.c
parentea51f73285f4aca931c8c7f497838da573f89142 (diff)
downloadmpd-0d45870cea6836cd48e6953f4e67756b2502e22c.tar.gz
mpd-0d45870cea6836cd48e6953f4e67756b2502e22c.tar.xz
mpd-0d45870cea6836cd48e6953f4e67756b2502e22c.zip
added decoder_clear() and decoder_flush()
We are now beginning to remove direct structure accesses from the decoder plugins. decoder_clear() and decoder_flush() mask two very common buffer functions.
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/audiofile_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputPlugins/audiofile_plugin.c b/src/inputPlugins/audiofile_plugin.c
index fc257263e..696621aff 100644
--- a/src/inputPlugins/audiofile_plugin.c
+++ b/src/inputPlugins/audiofile_plugin.c
@@ -92,7 +92,7 @@ static int audiofile_decode(struct decoder * decoder, char *path)
while (!eof) {
if (dc.command == DECODE_COMMAND_SEEK) {
- ob_clear();
+ decoder_clear(decoder);
current = dc.seekWhere *
dc.audioFormat.sampleRate;
afSeekFrame(af_fp, AF_DEFAULT_TRACK, current);
@@ -118,7 +118,7 @@ static int audiofile_decode(struct decoder * decoder, char *path)
}
}
- ob_flush();
+ decoder_flush(decoder);
}
afCloseFile(af_fp);