From ef40854b8629e88fe591f7801828876833a2cb0a Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Mon, 26 Oct 2015 21:32:57 +0100 Subject: [PATCH] gst1: Update index into query_position() result --- mopidy/audio/actor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy/audio/actor.py b/mopidy/audio/actor.py index 94fa5aea..7cbe9393 100644 --- a/mopidy/audio/actor.py +++ b/mopidy/audio/actor.py @@ -619,7 +619,7 @@ class Audio(pykka.ThreadingActor): :rtype: int """ try: - gst_position = self._playbin.query_position(Gst.Format.TIME)[0] + gst_position = self._playbin.query_position(Gst.Format.TIME)[1] return utils.clocktime_to_millisecond(gst_position) except Gst.QueryError: # TODO: take state into account for this and possibly also return