diff options
author | Magnus Holmgren <magnushol@gmail.com> | 2008-06-24 20:44:45 +0000 |
---|---|---|
committer | Magnus Holmgren <magnushol@gmail.com> | 2008-06-24 20:44:45 +0000 |
commit | 82ed56bf59bc15d786c5280972789999e24d759b (patch) | |
tree | 17d987de1c14155c0133ceac77bd0200c659a2b8 | |
parent | 349c14c26dc7d06ec71e19008a7e02cdd85d5606 (diff) | |
download | rockbox-82ed56bf59bc15d786c5280972789999e24d759b.tar.gz rockbox-82ed56bf59bc15d786c5280972789999e24d759b.zip |
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
-rw-r--r-- | apps/playlist.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 83bce9036b..fa448a0adc 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -3420,6 +3420,12 @@ int playlist_save(struct playlist_info* playlist, char *filename) | |||
3420 | display_playlist_count(count, ID2P(LANG_PLAYLIST_SAVE_COUNT), false); | 3420 | display_playlist_count(count, ID2P(LANG_PLAYLIST_SAVE_COUNT), false); |
3421 | 3421 | ||
3422 | cpu_boost(true); | 3422 | cpu_boost(true); |
3423 | |||
3424 | if (is_m3u8(path)) | ||
3425 | { | ||
3426 | /* some applications require a BOM to read the file properly */ | ||
3427 | write(fd, BOM, BOM_SIZE); | ||
3428 | } | ||
3423 | 3429 | ||
3424 | index = playlist->first_index; | 3430 | index = playlist->first_index; |
3425 | for (i=0; i<playlist->amount; i++) | 3431 | for (i=0; i<playlist->amount; i++) |