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
|
@ -942,13 +942,11 @@ static int dirbrowse(void)
|
|||
int create_playlist(void)
|
||||
{
|
||||
char filename[MAX_PATH + 16]; /* add enough space for extension */
|
||||
|
||||
if (tc.currdir[1])
|
||||
const char *playlist_dir = catalog_get_directory();
|
||||
if (strcmp(tc.currdir, playlist_dir) != 0)
|
||||
snprintf(filename, sizeof filename, "%s.m3u8", tc.currdir);
|
||||
else
|
||||
snprintf(filename, sizeof filename, "%s/all.m3u8",
|
||||
catalog_get_directory());
|
||||
|
||||
snprintf(filename, sizeof filename, "%s/all.m3u8", playlist_dir);
|
||||
|
||||
if (kbd_input(filename, MAX_PATH))
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue