summaryrefslogtreecommitdiff
path: root/apps/recorder/albumart.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder/albumart.c')
-rw-r--r--apps/recorder/albumart.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/apps/recorder/albumart.c b/apps/recorder/albumart.c
index c0d9e6d86f..50794c06c8 100644
--- a/apps/recorder/albumart.c
+++ b/apps/recorder/albumart.c
@@ -77,32 +77,6 @@ static char* strip_filename(char* buf, int buf_size, const char* fullpath)
77 return (sep + 1); 77 return (sep + 1);
78} 78}
79 79
80/* Make sure part of path only contain chars valid for a FAT32 long name.
81 * Double quotes are replaced with single quotes, other unsupported chars
82 * are replaced with an underscore.
83 *
84 * path - path to modify.
85 * offset - where in path to start checking.
86 * count - number of chars to check.
87 */
88static void fix_path_part(char* path, int offset, int count)
89{
90 static const char invalid_chars[] = "*/:<>?\\|";
91 int i;
92
93 path += offset;
94
95 for (i = 0; i <= count; i++, path++)
96 {
97 if (*path == 0)
98 return;
99 if (*path == '"')
100 *path = '\'';
101 else if (strchr(invalid_chars, *path))
102 *path = '_';
103 }
104}
105
106#ifdef USE_JPEG_COVER 80#ifdef USE_JPEG_COVER
107static const char * const extensions[] = { "jpeg", "jpg", "bmp" }; 81static const char * const extensions[] = { "jpeg", "jpg", "bmp" };
108static const unsigned char extension_lens[] = { 4, 3, 3 }; 82static const unsigned char extension_lens[] = { 4, 3, 3 };