aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-24 02:09:50 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-24 02:09:50 +0000
commit9b38a1e63e7efc40a85b5a0e1648a58eb3524ce5 (patch)
treea1575ddab93f9a9461de59ba11217cbe0fd2b460 /src
parentd294bc3e5720c27c25a7121f67207d160ce1c282 (diff)
downloadmpd-9b38a1e63e7efc40a85b5a0e1648a58eb3524ce5.tar.gz
mpd-9b38a1e63e7efc40a85b5a0e1648a58eb3524ce5.tar.xz
mpd-9b38a1e63e7efc40a85b5a0e1648a58eb3524ce5.zip
tweek seeking for mp3's
git-svn-id: https://svn.musicpd.org/mpd/trunk@442 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/mp3_decode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mp3_decode.c b/src/mp3_decode.c
index 6fa931fe7..ed108c37b 100644
--- a/src/mp3_decode.c
+++ b/src/mp3_decode.c
@@ -432,12 +432,12 @@ int mp3Read(mp3DecodeData * data, Buffer * cb, DecoderControl * dc) {
data->frameOffset[data->currentFrame] =
data->currentOffset;
if(data->stream.this_frame!=NULL) {
- data->frameOffset[data->currentFrame]+=
- data->stream.this_frame-
- data->stream.buffer;
+ data->frameOffset[data->currentFrame]-=
+ data->stream.bufend-
+ data->stream.this_frame;
}
else {
- data->frameOffset[data->currentFrame]+=
+ data->frameOffset[data->currentFrame]-=
data->stream.bufend-data->stream.buffer;
}
data->times[data->currentFrame] = data->timer;