summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-07-17 11:50:58 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-07-17 11:50:58 +0000
commit3a7291020b12d986173aa6d9e91f8fb7c0d35bc9 (patch)
tree7c046ae7cc3c3477bb393aa696968e9ec2db123e
parente0d4a6f82f14bda4384a2bc64fe9fbddec4360fc (diff)
downloadrockbox-3a7291020b12d986173aa6d9e91f8fb7c0d35bc9.tar.gz
rockbox-3a7291020b12d986173aa6d9e91f8fb7c0d35bc9.zip
Prefill the playlist filename with .m3u8 when creating a new playlist in the catalog
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30148 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playlist_catalog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/playlist_catalog.c b/apps/playlist_catalog.c
index 10c4f8b47c..9d4d707c08 100644
--- a/apps/playlist_catalog.c
+++ b/apps/playlist_catalog.c
@@ -308,7 +308,7 @@ bool catalog_add_to_a_playlist(const char* sel, int sel_attr,
308 { 308 {
309 /*If sel is a folder, we prefill the text field with its name*/ 309 /*If sel is a folder, we prefill the text field with its name*/
310 const char *name = strrchr(sel, '/'); 310 const char *name = strrchr(sel, '/');
311 snprintf(playlist, MAX_PATH, "%s/%s", 311 snprintf(playlist, MAX_PATH, "%s/%s.m3u8",
312 playlist_dir, 312 playlist_dir,
313 (name!=NULL && (sel_attr & ATTR_DIRECTORY))?name+1:""); 313 (name!=NULL && (sel_attr & ATTR_DIRECTORY))?name+1:"");
314 if (kbd_input(playlist, MAX_PATH)) 314 if (kbd_input(playlist, MAX_PATH))