aboutsummaryrefslogtreecommitdiffstats
path: root/src/mp3_decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-29 12:05:49 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-29 12:05:49 +0000
commit42a1a76efe43392f37abdac1259b392fee49c3e8 (patch)
tree9b7fed815f8847b4cb32c40813751fe5a37099f8 /src/mp3_decode.c
parentccfff4f0f4bb0ba04cc19a6bc341208acfc5747d (diff)
downloadmpd-42a1a76efe43392f37abdac1259b392fee49c3e8.tar.gz
mpd-42a1a76efe43392f37abdac1259b392fee49c3e8.tar.xz
mpd-42a1a76efe43392f37abdac1259b392fee49c3e8.zip
fix TIcho's seeking while paused bug
git-svn-id: https://svn.musicpd.org/mpd/trunk@1225 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/mp3_decode.c')
-rw-r--r--src/mp3_decode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mp3_decode.c b/src/mp3_decode.c
index c1eea2f0a..1e309bd79 100644
--- a/src/mp3_decode.c
+++ b/src/mp3_decode.c
@@ -498,6 +498,7 @@ int mp3Read(mp3DecodeData * data, OutputBuffer * cb, DecoderControl * dc) {
ret = sendDataToOutputBuffer(cb,
data->inStream,
dc,
+ data->inStream->seekable,
data->outputBuffer,
MP3_DATA_OUTPUT_BUFFER_SIZE,
data->elapsedTime,
@@ -589,7 +590,7 @@ int mp3_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream,
while(mp3Read(&data,cb,dc)!=DECODE_BREAK);
/* send last little bit if not dc->stop */
if(data.outputPtr!=data.outputBuffer && data.flush) {
- if(sendDataToOutputBuffer(cb,NULL,dc,data.outputBuffer,
+ if(sendDataToOutputBuffer(cb,NULL,dc,0,data.outputBuffer,
data.outputPtr-data.outputBuffer,
data.elapsedTime,data.bitRate/1000) == 0)
{