From 3a7291020b12d986173aa6d9e91f8fb7c0d35bc9 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 17 Jul 2011 11:50:58 +0000 Subject: [PATCH] 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 --- apps/playlist_catalog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.11.4.GIT