This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8999 - CPU stays boosted when skipping to the next track while buffering is still in progress.
Attached to Project:
Rockbox
Opened by Martin Ritter (MartinR) - Friday, 16 May 2008, 12:22 GMT+1
Last edited by Nils Wallménius (nls) - Wednesday, 12 November 2008, 16:18 GMT+1
Opened by Martin Ritter (MartinR) - Friday, 16 May 2008, 12:22 GMT+1
Last edited by Nils Wallménius (nls) - Wednesday, 12 November 2008, 16:18 GMT+1
|
Details- start playing an album of mp3 files
- quickly skip to the 2nd track - go to the view buffering thread screen Buffering will stop prematurely and CPU remains boosted. This doesn't seem to happen with VBR encoded mp3 files, though. |
This task depends upon
FS#8964- I was wrong: It also happens with VBR files, but not with all albums though. I wasn't able to figure out the difference yet.
- It also happens if the 1st track is very short, so that the 2nd track starts while still buffering.
- It doesn't matter whether or not album art is present.
FS#8964. Does it fix this issue too by any chance?FS#8964doesn't fix this one.I was able to track it down to a point where tracks[track_widx].id3_hid is -1 in buffering_handle_finished_callback(). That's probably wrong and causes buffering to stop prematurely because Q_AUDIO_FINISH_LOAD is not fired. But here I stuck.
Attached are two logf dumps with and without skipping the first track. I added two logf lines in buffering_handle_finished_callback() below the existing:
logf("handle %d finished buffering", *data);
logf(" track_widx=%d", track_widx);
logf(" id3_hid=%d", tracks[track_widx].id3_hid);
Hope this helps.
When i have "Gather Runtime Data" enabled, sometimes the CPU stays boosted when one track ends and the next starts. I dont have to skip. What i also see is, that the buffers are not filled up.
With "Gather Runtime Data" disabled everything works fine, and i am not able to reproduce the bug.
It looks like, that the writing of the runtime data disturbes the reding of the mp3-file.