From 6395edab6997cf09b9cb4bb296be66cd49866547 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 8 Aug 2006 00:56:05 +0000 Subject: 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 --- src/inputPlugins/mpc_plugin.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3