diff options
author | Stéphane Doyon <s.doyon@videotron.ca> | 2007-10-12 04:20:20 +0000 |
---|---|---|
committer | Stéphane Doyon <s.doyon@videotron.ca> | 2007-10-12 04:20:20 +0000 |
commit | 6d08116691cb56c96fbe88028dfe05e2c6198fef (patch) | |
tree | cbf63f38b061d9447c9c92024f75d51a09703b08 /apps/playlist.c | |
parent | 84ed3fd50fa2685c02c58e45a28b9cae247645ef (diff) | |
download | rockbox-6d08116691cb56c96fbe88028dfe05e2c6198fef.tar.gz rockbox-6d08116691cb56c96fbe88028dfe05e2c6198fef.zip |
Fix a bug whereby ACTION_TREE_WPS (GO_TO_PREVIOUS_MUSIC) brings us to the
radio, despite playback having been started since we last visited the radio.
To reproduce:
-go to the radio,
-stop and exit it,
-go to the browser, and do a playlist insert,
or start a playlist from the playlist catalog,
anything that starts playback without going to the WPS.
-Press ACTION_TREE_WPS.
Find yourself back into the radio.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15085 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 99b8c68eb4..47a1f3730d 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -99,6 +99,7 @@ | |||
99 | #include "talk.h" | 99 | #include "talk.h" |
100 | #include "splash.h" | 100 | #include "splash.h" |
101 | #include "rbunicode.h" | 101 | #include "rbunicode.h" |
102 | #include "root_menu.h" | ||
102 | 103 | ||
103 | #define PLAYLIST_CONTROL_FILE ROCKBOX_DIR "/.playlist_control" | 104 | #define PLAYLIST_CONTROL_FILE ROCKBOX_DIR "/.playlist_control" |
104 | #define PLAYLIST_CONTROL_FILE_VERSION 2 | 105 | #define PLAYLIST_CONTROL_FILE_VERSION 2 |
@@ -2387,6 +2388,11 @@ int playlist_start(int start_index, int offset) | |||
2387 | { | 2388 | { |
2388 | struct playlist_info* playlist = ¤t_playlist; | 2389 | struct playlist_info* playlist = ¤t_playlist; |
2389 | 2390 | ||
2391 | /* Cancel FM radio selection as previous music. For cases where we start | ||
2392 | playback without going to the WPS, such as playlist insert.. or | ||
2393 | playlist catalog. */ | ||
2394 | previous_music_is_wps(); | ||
2395 | |||
2390 | playlist->index = start_index; | 2396 | playlist->index = start_index; |
2391 | 2397 | ||
2392 | #if CONFIG_CODEC != SWCODEC | 2398 | #if CONFIG_CODEC != SWCODEC |