Slightly rearranged lines to execute only what's really needed. No functional changes.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27314 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Alexander Levin 2010-07-06 17:03:45 +00:00
parent 7d4c0c5e7e
commit 2c56ac8448

View file

@ -166,13 +166,13 @@ bool bookmark_mrb_load()
bool bookmark_autobookmark(bool prompt_ok) bool bookmark_autobookmark(bool prompt_ok)
{ {
char* bookmark; char* bookmark;
bool update = false; bool update;
if (!is_bookmarkable_state()) if (!is_bookmarkable_state())
return false; return false;
audio_pause(); /* first pause playback */ audio_pause(); /* first pause playback */
if (global_settings.autoupdatebookmark && bookmark_exists()) update = (global_settings.autoupdatebookmark && bookmark_exists());
update = true;
bookmark = create_bookmark(); bookmark = create_bookmark();
/* Workaround for inability to speak when paused: all callers will /* Workaround for inability to speak when paused: all callers will
just do audio_stop() when we return, so we can do it right just do audio_stop() when we return, so we can do it right