summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind <peter@mazdermind.de>2014-08-22 17:32:19 +0200
committerMaZderMind <peter@mazdermind.de>2014-08-22 17:32:19 +0200
commitfe32288e89651bf80b94cf5421daca431c7f45ca (patch)
tree5b3df409263852d74be7684734abf7a86b930744
parentdeea0738f04d3d78bee54d4baeb2bff6e248fc02 (diff)
add a sleep which fixes the startup issue
-rwxr-xr-xvoctocore/experiments/startuptest/startuptest.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/voctocore/experiments/startuptest/startuptest.py b/voctocore/experiments/startuptest/startuptest.py
index 6e1802e..606f5b5 100755
--- a/voctocore/experiments/startuptest/startuptest.py
+++ b/voctocore/experiments/startuptest/startuptest.py
@@ -14,7 +14,7 @@
# but somehow this is not enough to make the pipeline start in an error-condition..
#
-import gi
+import gi, time
# import GStreamer and GTK-Helper classes
gi.require_version('Gst', '1.0')
@@ -44,6 +44,10 @@ class Example:
self.src.link(self.sink)
def run(self):
+ print("PAUSED")
+ self.pipeline.set_state(Gst.State.PAUSED)
+ time.sleep(0.1)
+ print("PLAYING")
self.pipeline.set_state(Gst.State.PLAYING)
self.mainloop.run()