bpd: allow fractional seconds in seek

The documented type is float, not integer, and clients like mpDris2 send
fractional seconds, causing them to crash if these values ar enot
accepted.
This commit is contained in:
Carl Suster 2019-04-19 12:59:46 +10:00
parent 1a5263b68f
commit e708d28f85

View file

@ -1548,7 +1548,7 @@ class Server(BaseServer):
def cmd_seek(self, conn, index, pos):
"""Seeks to the specified position in the specified song."""
index = cast_arg(int, index)
pos = cast_arg(int, pos)
pos = cast_arg(float, pos)
super(Server, self).cmd_seek(conn, index, pos)
self.player.seek(pos)