gst1: Update index into query_position() result
This commit is contained in:
parent
3765e90bc7
commit
ef40854b86
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user