From 1ebab7f07eb7ff2e9bed9eccdf34505312713579 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 22 Aug 2014 19:12:15 +0200 Subject: proove that the seleep really solves the problem.. --- voctocore/experiments/failovertest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/voctocore/experiments/failovertest.py b/voctocore/experiments/failovertest.py index d827de0..47b4341 100755 --- a/voctocore/experiments/failovertest.py +++ b/voctocore/experiments/failovertest.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -import gi +import gi, time # import GStreamer and GTK-Helper classes gi.require_version('Gst', '1.0') @@ -32,6 +32,8 @@ class Example: self.grabbersrc.link(self.mixdisplay) def run(self): + self.pipeline.set_state(Gst.State.PAUSED) + time.sleep(0.5) self.pipeline.set_state(Gst.State.PLAYING) self.mainloop.run() -- cgit v1.2.3