summaryrefslogtreecommitdiffstats
path: root/apps/playlist_catalog.c
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 /apps/playlist_catalog.c
parente0d4a6f82f14bda4384a2bc64fe9fbddec4360fc (diff)
downloadrockbox-3a7291020b12d986173aa6d9e91f8fb7c0d35bc9.tar.gz
rockbox-3a7291020b12d986173aa6d9e91f8fb7c0d35bc9.tar.bz2
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
Diffstat (limited to 'apps/playlist_catalog.c')
-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,
{
/*If sel is a folder, we prefill the text field with its name*/
const char *name = strrchr(sel, '/');
- snprintf(playlist, MAX_PATH, "%s/%s",
+ snprintf(playlist, MAX_PATH, "%s/%s.m3u8",
playlist_dir,
(name!=NULL && (sel_attr & ATTR_DIRECTORY))?name+1:"");
if (kbd_input(playlist, MAX_PATH))