X-Git-Url: http://dolda2000.com/gitweb/?p=utils.git;a=blobdiff_plain;f=mpsync;h=cd8b08c75fa4f79f68069806eeca256bceec1171;hp=62008f0ef39e8abc8c4489362138aa87217d0214;hb=c3fcb10fdbff1f1f4d58adfe30fd8802f35d86c5;hpb=d91cef4e2a9099c537505575904e458f489cc947 diff --git a/mpsync b/mpsync index 62008f0..cd8b08c 100755 --- a/mpsync +++ b/mpsync @@ -98,6 +98,7 @@ class target(object): self.sk.connect(path) self.obuf = bytearray() self.ibuf = bytearray() + self.fps = self.getprop("container-fps") def write(self, data): self.obuf.extend(data) @@ -246,7 +247,7 @@ def main(tty): elif c == 'S': offsets = getoffsets() for tgt, off in zip(targets, offsets): - tgt.runcmd("show_text", "Offset: %f" % off) + tgt.runcmd("show_text", "Offset: %i" % round(off * tgt.fps)) elif c == '.': runcmd("frame_step") paused = True