Solve the progressbar not being updated in the last few secs of a track
commit07503ac2d10bdf93dc842d2e1212f3116467bb02
authorNicolas Pennequin <nicolas@nicolas-laptop.(none)>
Mon, 22 Oct 2007 11:50:12 +0000 (22 13:50 +0200)
committerlearman <learman@a1c6a512-1295-4272-9138-f99709370657>
Thu, 25 Oct 2007 19:18:20 +0000 (25 19:18 +0000)
tree63fd8168d1d6d20167bb4f1759d42087d4aa7d4b
parent1063426f5a7144784d560dc9c3c0714657fa11fb
Solve the progressbar not being updated in the last few secs of a track

This is a bit hackish, but no more than in SVN.
On track change, save the current track info to prevtrack_id3. The time
in that struct is updated with the reenabled codec_pcmbuf_position_callback.
We make the WPS aware that it's lagging behind the codec and force it to
refresh when the codec moves to the next track, so that it displays info
from prevtrack_id3. On the PCM track change, it is refreshed again and
prevtrack_id3 is cleared to avoid showing a full progressbar if the user
skips back.
apps/playback.c