summaryrefslogtreecommitdiffstats
path: root/apps/playlist.h
diff options
context:
space:
mode:
authorMagnus Holmgren <magnushol@gmail.com>2006-11-29 19:22:44 +0000
committerMagnus Holmgren <magnushol@gmail.com>2006-11-29 19:22:44 +0000
commita515b10d47218cf2cc4c79865ff2a34aea7ec3bc (patch)
treeceb7ce6a713ce8c9bf67fe0de48a62748aa12585 /apps/playlist.h
parent6ae46065b40691d5571252aeeb2ec5475e2f5e4c (diff)
downloadrockbox-a515b10d47218cf2cc4c79865ff2a34aea7ec3bc.tar.gz
rockbox-a515b10d47218cf2cc4c79865ff2a34aea7ec3bc.tar.bz2
rockbox-a515b10d47218cf2cc4c79865ff2a34aea7ec3bc.zip
Read .m3u playlist files using the default code page (unless they start with a BOM) rather than UTF-8. Change default playlist suffix to .m3u8 (playlists are always saved using UTF-8).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11626 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.h')
-rw-r--r--apps/playlist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/playlist.h b/apps/playlist.h
index 4ad7587722..3270bc55fa 100644
--- a/apps/playlist.h
+++ b/apps/playlist.h
@@ -30,7 +30,7 @@
#define PLAYLIST_ATTR_SKIPPED 0x04
#define PLAYLIST_MAX_CACHE 16
-#define DEFAULT_DYNAMIC_PLAYLIST_NAME "/dynamic.m3u"
+#define DEFAULT_DYNAMIC_PLAYLIST_NAME "/dynamic.m3u8"
enum playlist_command {
PLAYLIST_COMMAND_PLAYLIST,
@@ -69,6 +69,7 @@ struct playlist_info
bool current; /* current playing playlist */
char filename[MAX_PATH]; /* path name of m3u playlist on disk */
char control_filename[MAX_PATH]; /* full path of control file */
+ bool utf8; /* playlist is in .m3u8 format */
int fd; /* descriptor of the open playlist file */
int control_fd; /* descriptor of the open control file */
bool control_created; /* has control file been created? */