diff options
Diffstat (limited to 'voctocore/experiments/failovertest.py')
-rwxr-xr-x | voctocore/experiments/failovertest.py | 4 |
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() |