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:
Robert Kukla 2007-03-04 16:09:18 +00:00
parent 38b64f7b4b
commit 23c136c892
2 changed files with 3 additions and 5 deletions

View file

@ -922,11 +922,12 @@ static char* get_tag(struct wps_data* wps_data,
switch(tag[1])
{
case 'p': /* Playcount */
*flags |= WPS_REFRESH_STATIC;
*flags |= WPS_REFRESH_DYNAMIC;
*intval = cid3->playcount+1;
snprintf(buf, buf_size, "%ld", cid3->playcount);
return buf;
case 'r': /* Rating */
*flags |= WPS_REFRESH_STATIC;
*flags |= WPS_REFRESH_DYNAMIC;
*intval = cid3->rating+1;
snprintf(buf, buf_size, "%d", cid3->rating);
return buf;

View file

@ -2909,9 +2909,6 @@ static void audio_generate_postbuffer_events(void)
if (track_buffer_callback)
track_buffer_callback(&tracks[last_idx].id3, true);
}
/* Force WPS reload. */
track_changed = true;
}
}