forked from len0rd/rockbox
When saving a .m3u8 playlist, include a byte order mark (BOM), as some applications require it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17786 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
349c14c26d
commit
82ed56bf59
1 changed files with 6 additions and 0 deletions
|
@ -3420,6 +3420,12 @@ int playlist_save(struct playlist_info* playlist, char *filename)
|
||||||
display_playlist_count(count, ID2P(LANG_PLAYLIST_SAVE_COUNT), false);
|
display_playlist_count(count, ID2P(LANG_PLAYLIST_SAVE_COUNT), false);
|
||||||
|
|
||||||
cpu_boost(true);
|
cpu_boost(true);
|
||||||
|
|
||||||
|
if (is_m3u8(path))
|
||||||
|
{
|
||||||
|
/* some applications require a BOM to read the file properly */
|
||||||
|
write(fd, BOM, BOM_SIZE);
|
||||||
|
}
|
||||||
|
|
||||||
index = playlist->first_index;
|
index = playlist->first_index;
|
||||||
for (i=0; i<playlist->amount; i++)
|
for (i=0; i<playlist->amount; i++)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue