summaryrefslogtreecommitdiff
path: root/src/inputPlugins/wavpack_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/wavpack_plugin.c
parentea51f73285f4aca931c8c7f497838da573f89142 (diff)
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 'src/inputPlugins/wavpack_plugin.c')
-rw-r--r--src/inputPlugins/wavpack_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inputPlugins/wavpack_plugin.c b/src/inputPlugins/wavpack_plugin.c
index e4134bb31..9d125f053 100644
--- a/src/inputPlugins/wavpack_plugin.c
+++ b/src/inputPlugins/wavpack_plugin.c
@@ -177,7 +177,7 @@ static void wavpack_decode(struct decoder * decoder,
if (canseek) {
int where;
- ob_clear();
+ decoder_clear(decoder);
where = dc.seekWhere *
dc.audioFormat.sampleRate;
@@ -214,7 +214,7 @@ static void wavpack_decode(struct decoder * decoder,
}
} while (samplesgot == samplesreq);
- ob_flush();
+ decoder_flush(decoder);
}
static char *wavpack_tag(WavpackContext *wpc, char *key)