Comment 4 for bug 474139

Revision history for this message
Andy Owen (the-new-andy) wrote :

This is a patch (against the upstream git master... I thought this had been forwarded upstream, but I was confusing this with a different bug). The main issue is that the playbin2 gstreamer element doesn't actually tell you when it finishes one stream and begins the next. This patch works around that for the moment by assuming that when the stream position goes backwards, we have moved to the next stream.

So, now instead of having the position slider jump around to different spots, it now either works correctly, or jumps to 0:00 of the next track in the time period where it would previously have been jumping around.

The previous behavior had the position slider moving to the elapsed time for the current stream, but scaled according to the length of the next stream, so it was often somewhere in the middle.

I've spoken to a gstreamer guy on irc, and there are plans to fix playbin2 in the future.