diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-25 23:14:06 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-07-25 23:14:06 +0000 |
| commit | 5ca6b77a5f26707ce536ba13519fa7a7765909d7 (patch) | |
| tree | 185b967ade5341a0af38371b4fe289bdf5e3d1ee | |
| parent | e5792d6f6cd4e672767bea8850fe45f90780829e (diff) | |
| download | rockbox-5ca6b77a5f26707ce536ba13519fa7a7765909d7.zip rockbox-5ca6b77a5f26707ce536ba13519fa7a7765909d7.tar.gz rockbox-5ca6b77a5f26707ce536ba13519fa7a7765909d7.tar.bz2 rockbox-5ca6b77a5f26707ce536ba13519fa7a7765909d7.tar.xz | |
Better detection of track changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1451 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/wps.c | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -124,9 +124,6 @@ int wps_show(void) { static bool playing = true; struct mp3entry* id3 = mpeg_current_track(); - unsigned int lastlength=0, lastsize=0, lastrate=0; - int lastartist=0, lastalbum=0, lasttitle=0; - bool lastvbr = false; bool keys_locked = false; bool dont_go_to_menu = false; @@ -136,23 +133,10 @@ int wps_show(void) int i; char buffer[32]; - if ( ( id3->length != lastlength ) || - ( id3->filesize != lastsize ) || - ( id3->bitrate != lastrate ) || - ( id3->vbr != lastvbr ) || - ( (id3->artist?id3->artist[0]:0) != lastartist ) || - ( (id3->album?id3->album[0]:0) != lastalbum ) || - ( (id3->title?id3->title[0]:0) != lasttitle ) ) + if(mpeg_has_changed_track()) { lcd_stop_scroll(); draw_screen(id3); - lastlength = id3->length; - lastsize = id3->filesize; - lastrate = id3->bitrate; - lastvbr = id3->vbr; - lastartist = id3->artist?id3->artist[0]:0; - lastalbum = id3->album?id3->album[0]:0; - lasttitle = id3->title?id3->title[0]:0; } if (playing) |