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 /apps | |
parent | 3c38fe420426695ae33b4f579eb283d95fc17f04 (diff) | |
download | rockbox-7a2bc5272b295ab35796019b208c2956bc5c428f.tar.gz rockbox-7a2bc5272b295ab35796019b208c2956bc5c428f.zip |
Enable playlist functions for m3u files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13308 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-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 35e870debc..244cd77987 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -380,7 +380,8 @@ static int treeplaylist_callback(int action, | |||
380 | if (this_item == &tree_playlist_menu) | 380 | if (this_item == &tree_playlist_menu) |
381 | { | 381 | { |
382 | if (((selected_file_attr & FILE_ATTR_MASK) == FILE_ATTR_AUDIO) || | 382 | if (((selected_file_attr & FILE_ATTR_MASK) == FILE_ATTR_AUDIO) || |
383 | (selected_file_attr & ATTR_DIRECTORY)) | 383 | ((selected_file_attr & FILE_ATTR_MASK) == FILE_ATTR_M3U)|| |
384 | (selected_file_attr & ATTR_DIRECTORY)) | ||
384 | { | 385 | { |
385 | return action; | 386 | return action; |
386 | } | 387 | } |
@@ -405,7 +406,9 @@ static int treeplaylist_callback(int action, | |||
405 | return action; | 406 | return action; |
406 | } | 407 | } |
407 | else if ((this_item == &i_shuf_pl_item) && | 408 | else if ((this_item == &i_shuf_pl_item) && |
408 | (selected_file_attr & ATTR_DIRECTORY)) | 409 | ((selected_file_attr & ATTR_DIRECTORY) || |
410 | ((selected_file_attr & FILE_ATTR_MASK) == | ||
411 | FILE_ATTR_M3U))) | ||
409 | { | 412 | { |
410 | return action; | 413 | return action; |
411 | } | 414 | } |