spotify: Fix GStreamer warning on seek (fixes #227)

Don't call audio.{prepare_change,start_playback}() before/after seek. This does
not seem to have any effect on functionality, and avoids Gstreamer failing to
disconnect the "notify::source" signal handler, which again causes a warning.
This commit is contained in:
Stein Magnus Jodal 2012-11-14 10:58:02 +01:00
parent 6b7256a955
commit 75f7fc273a

View File

@ -52,12 +52,8 @@ class SpotifyPlaybackProvider(base.BasePlaybackProvider):
return self.seek(time_position)
def seek(self, time_position):
self.audio.prepare_change()
self.backend.spotify.session.seek(time_position)
self.audio.start_playback()
self._timer.seek(time_position)
return True
def stop(self):