forked from len0rd/rockbox
A patch by Robert Keevil that's been in the tracker way to long, fixes FS #6213: Audioscrobbler incorrectly submits last song
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13699 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
78c45530ff
commit
12d2d0fbc2
5 changed files with 32 additions and 8 deletions
|
|
@ -2727,6 +2727,11 @@ void audio_play(long offset)
|
|||
void audio_stop(void)
|
||||
{
|
||||
#ifndef SIMULATOR
|
||||
if (playing)
|
||||
{
|
||||
struct trackdata *track = get_trackdata(0);
|
||||
prev_track_elapsed = track->id3.elapsed;
|
||||
}
|
||||
mpeg_stop_done = false;
|
||||
queue_post(&mpeg_queue, MPEG_STOP, 0);
|
||||
while(!mpeg_stop_done)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue