mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
don't restart the whole wps to essentially update the display of runtime info, but make the concerned tags dynamic. Now scrolling is not restarted at end of buffering.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12592 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
38b64f7b4b
commit
23c136c892
2 changed files with 3 additions and 5 deletions
|
|
@ -922,11 +922,12 @@ static char* get_tag(struct wps_data* wps_data,
|
||||||
switch(tag[1])
|
switch(tag[1])
|
||||||
{
|
{
|
||||||
case 'p': /* Playcount */
|
case 'p': /* Playcount */
|
||||||
*flags |= WPS_REFRESH_STATIC;
|
*flags |= WPS_REFRESH_DYNAMIC;
|
||||||
|
*intval = cid3->playcount+1;
|
||||||
snprintf(buf, buf_size, "%ld", cid3->playcount);
|
snprintf(buf, buf_size, "%ld", cid3->playcount);
|
||||||
return buf;
|
return buf;
|
||||||
case 'r': /* Rating */
|
case 'r': /* Rating */
|
||||||
*flags |= WPS_REFRESH_STATIC;
|
*flags |= WPS_REFRESH_DYNAMIC;
|
||||||
*intval = cid3->rating+1;
|
*intval = cid3->rating+1;
|
||||||
snprintf(buf, buf_size, "%d", cid3->rating);
|
snprintf(buf, buf_size, "%d", cid3->rating);
|
||||||
return buf;
|
return buf;
|
||||||
|
|
|
||||||
|
|
@ -2909,9 +2909,6 @@ static void audio_generate_postbuffer_events(void)
|
||||||
if (track_buffer_callback)
|
if (track_buffer_callback)
|
||||||
track_buffer_callback(&tracks[last_idx].id3, true);
|
track_buffer_callback(&tracks[last_idx].id3, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Force WPS reload. */
|
|
||||||
track_changed = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue