aboutsummaryrefslogtreecommitdiffstats
path: root/src/ogg_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/ogg_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/ogg_decode.c')
-rw-r--r--src/ogg_decode.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ogg_decode.c b/src/ogg_decode.c
index 409e2868e..60f310fba 100644
--- a/src/ogg_decode.c
+++ b/src/ogg_decode.c
@@ -242,15 +242,16 @@ int ogg_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream)
}
doReplayGain(chunk,ret,&(dc->audioFormat),
replayGainScale);
- sendDataToOutputBuffer(cb, inStream, dc, chunk,
- chunkpos, ov_time_tell(&vf), bitRate);
+ sendDataToOutputBuffer(cb, inStream, dc,
+ inStream->seekable, chunk, chunkpos,
+ ov_time_tell(&vf), bitRate);
if(dc->stop) break;
chunkpos = 0;
}
}
if(!dc->stop && chunkpos > 0) {
- sendDataToOutputBuffer(cb, NULL, dc, chunk, chunkpos,
+ sendDataToOutputBuffer(cb, NULL, dc, 0, chunk, chunkpos,
ov_time_tell(&vf), bitRate);
}