mpc_plugin: fix seeking bug

remember to reset our chunk pointer when seeking

git-svn-id: https://svn.musicpd.org/mpd/trunk@4597 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Eric Wong 2006-08-08 00:56:05 +00:00
parent 354d9aed79
commit 6395edab69

View File

@ -200,6 +200,7 @@ static int mpc_decode(OutputBuffer * cb, DecoderControl * dc,
samplePos = dc->seekWhere * dc->audioFormat.sampleRate;
if (mpc_decoder_seek_sample(&decoder, samplePos)) {
clearOutputBuffer(cb);
s16 = (mpd_sint16 *) chunk;
chunkpos = 0;
} else
dc->seekError = 1;