Playlist Fix failure to append default file name pt2
fix create_playlist too Change-Id: Ic1de1382d5b534991253d662cb1b3aa5520f8887
This commit is contained in:
parent
fd19a2caa2
commit
5a4cdb96b9
1 changed files with 4 additions and 6 deletions
10
apps/tree.c
10
apps/tree.c
|
@ -942,14 +942,12 @@ static int dirbrowse(void)
|
||||||
int create_playlist(void)
|
int create_playlist(void)
|
||||||
{
|
{
|
||||||
char filename[MAX_PATH + 16]; /* add enough space for extension */
|
char filename[MAX_PATH + 16]; /* add enough space for extension */
|
||||||
|
const char *playlist_dir = catalog_get_directory();
|
||||||
if (tc.currdir[1])
|
if (strcmp(tc.currdir, playlist_dir) != 0)
|
||||||
snprintf(filename, sizeof filename, "%s.m3u8", tc.currdir);
|
snprintf(filename, sizeof filename, "%s.m3u8", tc.currdir);
|
||||||
else
|
else
|
||||||
snprintf(filename, sizeof filename, "%s/all.m3u8",
|
snprintf(filename, sizeof filename, "%s/all.m3u8", playlist_dir);
|
||||||
catalog_get_directory());
|
|
||||||
|
|
||||||
|
|
||||||
if (kbd_input(filename, MAX_PATH))
|
if (kbd_input(filename, MAX_PATH))
|
||||||
return 0;
|
return 0;
|
||||||
splashf(0, "%s %s", str(LANG_CREATING), filename);
|
splashf(0, "%s %s", str(LANG_CREATING), filename);
|
||||||
|
|
Loading…
Reference in a new issue