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:
parent
354d9aed79
commit
6395edab69
@ -200,6 +200,7 @@ static int mpc_decode(OutputBuffer * cb, DecoderControl * dc,
|
|||||||
samplePos = dc->seekWhere * dc->audioFormat.sampleRate;
|
samplePos = dc->seekWhere * dc->audioFormat.sampleRate;
|
||||||
if (mpc_decoder_seek_sample(&decoder, samplePos)) {
|
if (mpc_decoder_seek_sample(&decoder, samplePos)) {
|
||||||
clearOutputBuffer(cb);
|
clearOutputBuffer(cb);
|
||||||
|
s16 = (mpd_sint16 *) chunk;
|
||||||
chunkpos = 0;
|
chunkpos = 0;
|
||||||
} else
|
} else
|
||||||
dc->seekError = 1;
|
dc->seekError = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user