summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind <peter@mazdermind.de>2014-08-22 19:12:15 +0200
committerMaZderMind <peter@mazdermind.de>2014-08-22 19:12:15 +0200
commit1ebab7f07eb7ff2e9bed9eccdf34505312713579 (patch)
treef7ce4664e47a810e6c4ab995fe49e99f1c0148ff
parentb34c3471b4547cc94e12bb033db58f3ff2b6bb93 (diff)
proove that the seleep really solves the problem..
-rwxr-xr-xvoctocore/experiments/failovertest.py4
1 files changed, 3 insertions, 1 deletions
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()