aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-08-08 00:56:05 +0000
committerEric Wong <normalperson@yhbt.net>2006-08-08 00:56:05 +0000
commit6395edab6997cf09b9cb4bb296be66cd49866547 (patch)
tree8e063960833d075ba7270e7972bae25c4e5cb2a8 /src
parent354d9aed798cb6d2119e0edf15dd203d4eb9a3b6 (diff)
downloadmpd-6395edab6997cf09b9cb4bb296be66cd49866547.tar.gz
mpd-6395edab6997cf09b9cb4bb296be66cd49866547.tar.xz
mpd-6395edab6997cf09b9cb4bb296be66cd49866547.zip
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
Diffstat (limited to '')
-rw-r--r--src/inputPlugins/mpc_plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inputPlugins/mpc_plugin.c b/src/inputPlugins/mpc_plugin.c
index 500e57172..e8671b7fa 100644
--- a/src/inputPlugins/mpc_plugin.c
+++ b/src/inputPlugins/mpc_plugin.c
@@ -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;