summaryrefslogtreecommitdiff
path: root/lib/rbcodec/codecs/libmusepack
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2023-03-30 12:14:58 +0100
committerSolomon Peachy <pizza@shaftnet.org>2023-07-02 12:15:57 -0400
commitb1fac21e4e43aa800e162e80532b8f3e17169748 (patch)
treed40648c7f5568d75096792e6d1b1fde2b3f71673 /lib/rbcodec/codecs/libmusepack
parent3b1e95d4802cd0f5a5df9d4d67696be1af33a14f (diff)
downloadrockbox-b1fac21e4e43aa800e162e80532b8f3e17169748.tar.gz
rockbox-b1fac21e4e43aa800e162e80532b8f3e17169748.zip
playlist: Fix wrong handling of playlists without UTF-8 BOM
add_indices_to_playlist() wrongly assumes playlist->utf8 means the playlist has a UTF-8 BOM. It only means the file is UTF-8 encoded, and says nothing about the presence of a BOM. Trying to seek past a BOM when there is none mangles the first filename in the playlist. Avoid this by closing & reopening the playlist, which ensures the BOM (or lack of it) gets detected properly. Change-Id: I222fa6fc31e941d0252f1895b393a51694b93b7c
Diffstat (limited to 'lib/rbcodec/codecs/libmusepack')
0 files changed, 0 insertions, 0 deletions