tweek seeking for mp3's
git-svn-id: https://svn.musicpd.org/mpd/trunk@442 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
d294bc3e57
commit
9b38a1e63e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue