forked from len0rd/rockbox
Stop playing current track before starting a new playlist with an offset (eg. bookmarks).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9861 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f79d35a25e
commit
982d995ae9
1 changed files with 4 additions and 1 deletions
|
|
@ -2498,10 +2498,13 @@ bool audio_has_changed_track(void)
|
|||
void audio_play(long offset)
|
||||
{
|
||||
logf("audio_play");
|
||||
if (playing)
|
||||
if (playing && offset <= 0)
|
||||
queue_post(&audio_queue, Q_AUDIO_NEW_PLAYLIST, 0);
|
||||
else
|
||||
{
|
||||
if (playing)
|
||||
audio_stop();
|
||||
|
||||
playing = true;
|
||||
queue_post(&audio_queue, Q_AUDIO_PLAY, (void *)offset);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue