summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/mpa.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-10-30 23:46:36 +0000
committerAidan MacDonald <amachronic@protonmail.com>2022-11-01 09:52:34 -0400
commit26ffcd8f9fca77ee0983eb673e37c15738f1f592 (patch)
tree25075482c6e489f7b16769f6d019b4ee1304dbcc /lib/rbcodec/codecs/mpa.c
parent0d303567344ef36c804d0377ae9c43a869a94557 (diff)
downloadrockbox-26ffcd8f9fca77ee0983eb673e37c15738f1f592.tar.gz
rockbox-26ffcd8f9fca77ee0983eb673e37c15738f1f592.zip
playback: Fix track resume from file offset
Resuming a track with "Resume Playback" or a bookmark is supposed to pass both the file offset and elapsed time to the codec. Since commit dfff938dff08 the offset has been getting zeroed because the buffer handle wasn't open at the time of the buf_filesize() call, causing it to return a negative error code. Having a valid offset improves resume accuracy with some codecs, like VBR MP3. Change-Id: I8af7f001644f1ee1bd27ca3049a4cff2d2274149
Diffstat (limited to 'lib/rbcodec/codecs/mpa.c')
0 files changed, 0 insertions, 0 deletions