Accept FS#11721 by Michael Hohmuth

Fix Runtime statistics data not gathered when playback stops


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28644 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2010-11-23 00:13:14 +00:00
parent 5e6b9f7ed4
commit 3dc5f59625

View file

@ -1685,6 +1685,12 @@ static void audio_stop_playback(void)
/* Save the current playing spot, or NULL if the playlist has ended */
playlist_update_resume_info(id3);
/* Now it's good time to send track finish events. Do this
only if this hasn't been done already as part of a track
switch. */
if (id3 == thistrack_id3)
send_event(PLAYBACK_EVENT_TRACK_FINISH, thistrack_id3);
/* TODO: Create auto bookmark too? */
prev_track_elapsed = othertrack_id3->elapsed;