forked from len0rd/rockbox
Now the next-song WPS feature works
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4686 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e85acf10c8
commit
4b3d553b3b
2 changed files with 4 additions and 1 deletions
|
|
@ -355,6 +355,7 @@ static char* get_tag(struct mp3entry* cid3,
|
||||||
{
|
{
|
||||||
case 'I': /* ID3 Information */
|
case 'I': /* ID3 Information */
|
||||||
id3 = nid3; /* display next-song data */
|
id3 = nid3; /* display next-song data */
|
||||||
|
*flags |= WPS_REFRESH_DYNAMIC;
|
||||||
if(!id3)
|
if(!id3)
|
||||||
return NULL; /* no such info (yet) */
|
return NULL; /* no such info (yet) */
|
||||||
/* fall-through */
|
/* fall-through */
|
||||||
|
|
@ -422,6 +423,7 @@ static char* get_tag(struct mp3entry* cid3,
|
||||||
|
|
||||||
case 'F': /* File Information */
|
case 'F': /* File Information */
|
||||||
id3 = nid3;
|
id3 = nid3;
|
||||||
|
*flags |= WPS_REFRESH_DYNAMIC;
|
||||||
if(!id3)
|
if(!id3)
|
||||||
return NULL; /* no such info (yet) */
|
return NULL; /* no such info (yet) */
|
||||||
/* fall-through */
|
/* fall-through */
|
||||||
|
|
@ -581,6 +583,7 @@ static char* get_tag(struct mp3entry* cid3,
|
||||||
|
|
||||||
case 'D': /* Directory path information */
|
case 'D': /* Directory path information */
|
||||||
id3 = nid3; /* next song please! */
|
id3 = nid3; /* next song please! */
|
||||||
|
*flags |= WPS_REFRESH_DYNAMIC;
|
||||||
if(!id3)
|
if(!id3)
|
||||||
return NULL; /* no such info (yet) */
|
return NULL; /* no such info (yet) */
|
||||||
/* fall-through */
|
/* fall-through */
|
||||||
|
|
|
||||||
|
|
@ -433,11 +433,11 @@ static bool update(void)
|
||||||
bool track_changed = mpeg_has_changed_track();
|
bool track_changed = mpeg_has_changed_track();
|
||||||
bool retcode = false;
|
bool retcode = false;
|
||||||
|
|
||||||
|
nid3 = mpeg_next_track();
|
||||||
if (track_changed)
|
if (track_changed)
|
||||||
{
|
{
|
||||||
lcd_stop_scroll();
|
lcd_stop_scroll();
|
||||||
id3 = mpeg_current_track();
|
id3 = mpeg_current_track();
|
||||||
nid3 = mpeg_next_track();
|
|
||||||
if (wps_display(id3, nid3))
|
if (wps_display(id3, nid3))
|
||||||
retcode = true;
|
retcode = true;
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue