mopidy/mopidy — pull request #289 by jodal (2012-12-23 14:05:34+00:00)
Title: Make Spotify backend use GStreamer for time position and seek

This pull request resolves #209.

The custom wall clock-based time tracking is removed from the Spotify backend, and instead it lets GStreamer keep track of its time position and handle seeks.

I've verified that local playback is unaffected by these changes.

The first buffer emitted by the Spotify backend after a track starts and after a seek is marked with a buffer timestamp. This is either 0 or the time position that was seeked to. This may have to be changed to be a time that is ever-increasing across multiple tracks to work with Vorbis encoding and ShoutCAST output. I leave that change to the ongoing EOS/EOT/ShoutCAST work.