Commit 6395edab authored by Eric Wong's avatar Eric Wong

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
parent 354d9aed
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment