diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2009-02-16 00:29:07 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2009-02-16 00:29:07 +0000 |
| commit | a2f92c9e17a5bc49c38ecba3605996cefcca7686 (patch) | |
| tree | c4af6e4cc1f80399ca07640b96128013446194ee /apps | |
| parent | d8ff94121fd855d86a10a4bb98ad426a3e119c20 (diff) | |
| download | rockbox-a2f92c9e17a5bc49c38ecba3605996cefcca7686.zip rockbox-a2f92c9e17a5bc49c38ecba3605996cefcca7686.tar.gz rockbox-a2f92c9e17a5bc49c38ecba3605996cefcca7686.tar.bz2 rockbox-a2f92c9e17a5bc49c38ecba3605996cefcca7686.tar.xz | |
Don't send a trackchange event at end of playlist. Fixes 'Follow Playlist' on hwcodec at end-of-playlist, including the related null pointer access.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20014 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/mpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/mpeg.c b/apps/mpeg.c index f6d48bf..45b3619 100644 --- a/apps/mpeg.c +++ b/apps/mpeg.c @@ -1051,8 +1051,9 @@ static void track_change(void) if (num_tracks_in_memory() > 0) { remove_current_tag(); - send_event(PLAYBACK_EVENT_TRACK_CHANGE, audio_current_track()); update_playlist(); + if (is_playing) + send_event(PLAYBACK_EVENT_TRACK_CHANGE, audio_current_track()); } current_track_counter++; |