This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#5495 - audio_set_track_changed_event() skips first track in playlist
Attached to Project:
Rockbox
Opened by Robert Keevil (obo) - Sunday, 04 June 2006, 19:24 GMT+2
Last edited by Peter D'Hoye (petur) - Sunday, 24 June 2007, 21:21 GMT+2
Opened by Robert Keevil (obo) - Sunday, 04 June 2006, 19:24 GMT+2
Last edited by Peter D'Hoye (petur) - Sunday, 24 June 2007, 21:21 GMT+2
|
DetailsThe audio_set_track_changed_event() skips the first track in a playlist on SWCODEC devices since the playback code was reworked. A CVS checkout from April 1st works fine.
Attached is a cutdown version of patch 5166 that writes a couple of lines per event (diff file was slightly hand crafted, hopefully will patch cleanly to 1st April CVS). |
This task depends upon
Closed by Peter D'Hoye (petur)
Sunday, 24 June 2007, 21:21 GMT+2
Reason for closing: Accepted
Additional comments about closing: so long, and thanks for all the patch
Sunday, 24 June 2007, 21:21 GMT+2
Reason for closing: Accepted
Additional comments about closing: so long, and thanks for all the patch
i'm still testing it a bit, but i was able to reproduce the missing first track with the audioscrobbler/last.fm patch (5166).
in fact, even if i restart that first song manually from the beginning, it still doesn't show up in the .scrobbler.log
Start player with auto-resume enabled - first track is NOT logged.
Create a new playlist - first track is NOT logged.
Stop playback, enter folder with music, and play first track - first track is NOT logged.
Enter folder with music, and play first track, WITHOUT stopping playback beforehand - first track IS logged.
I wasn't picking this up due to the way I use my player.
I can't see why a track_changed_event isn't generated - I don't even know if it's a fault in playback.c or playlist.c (or something else?).
Attached patch now fixes when first track was fully played it gets logged
Still, first track doesn't get logged when you started playback from last track in playlist
However, I also experience the issue Peter mentions: When stopping playback of a song prematurely, it doesn't seem to be logged, although it should be logged with a status of "skipped" ("S") when less than 50 % of the song has been played. Skipping seems to log the song with "S", as it should, but stopping doesn't, at least as far as I can see so far today. That might not be related to this patch at all, though, unless Peter has any reason to believe otherwise since he mentions it here?
FS#6213.Here's the log I was trying to submit:
#AUDIOSCROBBLER/1.0
#TZ/UNKNOWN
#CLIENT/Rockbox h300 $Revision: 12267 $
Ambo 1000 Years and 1 Day Slow Motion 1 253 L 1173309430
Ambo 1000 Years and 1 Day Vapor 2 220 L 1173309433
Ambo 1000 Years and 1 Day Cocoon 3 279 L 1173309653
I left the third song in so that you can compare all the timestamps. As you can see, it's obviously giving the first song an incorrect timestamp; it's only three seconds before song number two, which is why Last.FM is rejecting it.
Can this be fixed? Thanks a lot for your work, desowin, you're nearly there! :-)
Combined with the patch on
FS#6213this should solve all scrobbler issues on SWCODEC targets.