forked from len0rd/rockbox
Enable playlist functions for m3u files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13308 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3c38fe4204
commit
7a2bc5272b
1 changed files with 5 additions and 2 deletions
|
@ -380,7 +380,8 @@ static int treeplaylist_callback(int action,
|
||||||
if (this_item == &tree_playlist_menu)
|
if (this_item == &tree_playlist_menu)
|
||||||
{
|
{
|
||||||
if (((selected_file_attr & FILE_ATTR_MASK) == FILE_ATTR_AUDIO) ||
|
if (((selected_file_attr & FILE_ATTR_MASK) == FILE_ATTR_AUDIO) ||
|
||||||
(selected_file_attr & ATTR_DIRECTORY))
|
((selected_file_attr & FILE_ATTR_MASK) == FILE_ATTR_M3U)||
|
||||||
|
(selected_file_attr & ATTR_DIRECTORY))
|
||||||
{
|
{
|
||||||
return action;
|
return action;
|
||||||
}
|
}
|
||||||
|
@ -405,7 +406,9 @@ static int treeplaylist_callback(int action,
|
||||||
return action;
|
return action;
|
||||||
}
|
}
|
||||||
else if ((this_item == &i_shuf_pl_item) &&
|
else if ((this_item == &i_shuf_pl_item) &&
|
||||||
(selected_file_attr & ATTR_DIRECTORY))
|
((selected_file_attr & ATTR_DIRECTORY) ||
|
||||||
|
((selected_file_attr & FILE_ATTR_MASK) ==
|
||||||
|
FILE_ATTR_M3U)))
|
||||||
{
|
{
|
||||||
return action;
|
return action;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue