summaryrefslogtreecommitdiffstats
path: root/apps/recorder
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2022-08-16 13:10:13 +0200
committerChristian Soffke <christian.soffke@gmail.com>2023-01-14 12:14:28 -0500
commit7f265ee8dd062a015e214b16f9c41fc27e867f22 (patch)
tree87ba5da95ef7870c922fd7206640c976ad72794a /apps/recorder
parentcc79f1b543535e8d7e5b9875af9043c16267e429 (diff)
downloadrockbox-7f265ee8dd062a015e214b16f9c41fc27e867f22.tar.gz
rockbox-7f265ee8dd062a015e214b16f9c41fc27e867f22.zip
Database: Add ability to insert multiple files into playlists
You could only add single files to playlists from the database browser before. This enables adding any database selection to a new or existing playlist. Change-Id: I811c7167641c589944bb2afc18dcc1d299a7b979
Diffstat (limited to 'apps/recorder')
-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)
return (sep + 1);
}
-/* Make sure part of path only contain chars valid for a FAT32 long name.
- * Double quotes are replaced with single quotes, other unsupported chars
- * are replaced with an underscore.
- *
- * path - path to modify.
- * offset - where in path to start checking.
- * count - number of chars to check.
- */
-static void fix_path_part(char* path, int offset, int count)
-{
- static const char invalid_chars[] = "*/:<>?\\|";
- int i;
-
- path += offset;
-
- for (i = 0; i <= count; i++, path++)
- {
- if (*path == 0)
- return;
- if (*path == '"')
- *path = '\'';
- else if (strchr(invalid_chars, *path))
- *path = '_';
- }
-}
-
#ifdef USE_JPEG_COVER
static const char * const extensions[] = { "jpeg", "jpg", "bmp" };
static const unsigned char extension_lens[] = { 4, 3, 3 };