reset tick
This commit is contained in:
parent
3c9f200fdd
commit
1ac5574bfc
1 changed files with 2 additions and 0 deletions
|
@ -192,6 +192,7 @@ class Sync(Thread):
|
||||||
if args[0] != 'd-':
|
if args[0] != 'd-':
|
||||||
return
|
return
|
||||||
self.is_paused = False
|
self.is_paused = False
|
||||||
|
self._tick = 0
|
||||||
self.mpv.pause = False
|
self.mpv.pause = False
|
||||||
if self.sax:
|
if self.sax:
|
||||||
self.sax.pause = False
|
self.sax.pause = False
|
||||||
|
@ -312,6 +313,7 @@ class Sync(Thread):
|
||||||
self.mpv.pause = True
|
self.mpv.pause = True
|
||||||
elif data[0] == "play":
|
elif data[0] == "play":
|
||||||
self.is_paused = False
|
self.is_paused = False
|
||||||
|
self._tick = 0
|
||||||
self.mpv.pause = False
|
self.mpv.pause = False
|
||||||
else:
|
else:
|
||||||
self.main.time_pos = float(data[0])
|
self.main.time_pos = float(data[0])
|
||||||
|
|
Loading…
Reference in a new issue