summaryrefslogtreecommitdiffstats
path: root/apps/bookmark.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-09-26 21:13:25 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-09-26 21:13:25 +0000
commit1ca28a4dc71f1d1074910d83991b56d07ab50576 (patch)
tree23fd6f9e755a6511efa07a96d01a932219043ea2 /apps/bookmark.c
parentdcc0d7dfdc88778169c542ec714094b068d8ff70 (diff)
downloadrockbox-1ca28a4dc71f1d1074910d83991b56d07ab50576.tar.gz
rockbox-1ca28a4dc71f1d1074910d83991b56d07ab50576.tar.bz2
rockbox-1ca28a4dc71f1d1074910d83991b56d07ab50576.zip
Warn about erasing dynamic playlist when loading bookmark - FS #10482 by Tuomas Airaksinen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28176 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r--apps/bookmark.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c
index efc43c6270..8de06999f4 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -927,6 +927,8 @@ static bool play_bookmark(const char* bookmark)
sound_set_pitch(bm.pitch);
dsp_set_timestretch(bm.speed);
#endif
+ if (!warn_on_pl_erase())
+ return false;
return bookmark_play(global_temp_buffer, bm.resume_index,
bm.resume_offset, bm.resume_seed, global_filename);
}