diff options
| author | Hardeep Sidhu <dyp@pobox.com> | 2007-05-03 01:10:52 +0000 |
|---|---|---|
| committer | Hardeep Sidhu <dyp@pobox.com> | 2007-05-03 01:10:52 +0000 |
| commit | 7a2bc5272b295ab35796019b208c2956bc5c428f (patch) | |
| tree | 902f8818f144a47488f8536290d57bb740d1780e | |
| parent | 3c38fe420426695ae33b4f579eb283d95fc17f04 (diff) | |
| download | rockbox-7a2bc5272b295ab35796019b208c2956bc5c428f.zip rockbox-7a2bc5272b295ab35796019b208c2956bc5c428f.tar.gz rockbox-7a2bc5272b295ab35796019b208c2956bc5c428f.tar.bz2 rockbox-7a2bc5272b295ab35796019b208c2956bc5c428f.tar.xz | |
Enable playlist functions for m3u files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13308 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/onplay.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index 35e870d..244cd77 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -380,7 +380,8 @@ static int treeplaylist_callback(int action, if (this_item == &tree_playlist_menu) { 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; } @@ -405,7 +406,9 @@ static int treeplaylist_callback(int action, return action; } 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; } |