X-Git-Url: https://git.ao2.it/experiments/gstreamer.git/blobdiff_plain/1a730f925f38fa0b45bbc1a95a6b03e296d1f6d8..fea9aded03f795cfea3e1710a5d1024d41895720:/python/gst-trick-mode.py diff --git a/python/gst-trick-mode.py b/python/gst-trick-mode.py index 0bb5877..45e7af2 100755 --- a/python/gst-trick-mode.py +++ b/python/gst-trick-mode.py @@ -72,15 +72,16 @@ class Player: def main(args): def usage(): - sys.stdout.write("usage: %s \n" % args[0]) + sys.stdout.write("usage: %s \n" % args[0]) - if len(args) != 2: + if len(args) != 3: usage() sys.exit(1) uri = Gst.filename_to_uri(args[1]) + rate = float(args[2]) - player = Player(uri, 3.0) + player = Player(uri, rate) player.run() if __name__ == '__main__':