decoder_api: removed decoder_clear()

Call ob_clear() in decoder_command_finished() instead of implementing
that call in every decoder plugin.
This commit is contained in:
Max Kellermann
2008-10-29 17:28:47 +01:00
parent d6c4441c78
commit be90199c5a
10 changed files with 7 additions and 23 deletions

View File

@@ -168,7 +168,6 @@ mpc_decode(struct decoder *mpd_decoder, struct input_stream *inStream)
samplePos = decoder_seek_where(mpd_decoder) *
audio_format.sample_rate;
if (mpc_decoder_seek_sample(&decoder, samplePos)) {
decoder_clear(mpd_decoder);
s16 = (int16_t *) chunk;
chunkpos = 0;
decoder_command_finished(mpd_decoder);