Skipping track just before the end skips the following track

Bug #770346 reported by Sean Talbot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Decibel Audio Player
Fix Released
Low
Anonym25712

Bug Description

I think I've found a bug in how changing track is implemented.

To replicate, select three tracks from your library that have play times of at least 20 - 30 seconds. Put the tracks in the play queue and seek along the first one to around 10s before the end.

Now hit play, and watch the time closely, as you need to press 'Next Track' when there are ~3s left before the track changes manually. Get it right and Decibel skips to the next (i.e. second) track, pauses for half a second, then skips again to the third track.

Can anyone confirm?

Revision history for this message
Mark Finger (markfinger) wrote :

From testing, this is caused by the process of buffering the next track 5 secs before the current one ends. Presumably, the buffering process increments the index and when 'next' is performed it moves it one further along the index.

I've attached a patch which sets the buffering to begin .5 secs before the end of the track, rather than 5 secs.

It fixes it for me and does not seem to cause any issues with lag from buffering.

Revision history for this message
Anonym25712 (anonym25712) wrote :

The buffering process with Gstreamer is a PITA. This bug happens because when you click next right before the end, the player sees that the next track is the buffered one, and thus let Gstreamer plays it without stopping anything. However, this is fine only when the current track has ended, not when you're trying to skip it.

This should be fixed on the trunk.

summary: - Skipping track just before current ends skips 2 tracks
+ Skipping track just before the end skips the following track
Changed in decibel-audio-player:
assignee: nobody → François Ingelrest (athropos)
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Anonym25712 (anonym25712) wrote :

See v1.08

Changed in decibel-audio-player:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.