From ae92aaf74fbd9c6ca34ef2984dfdfaaa1e97c5f1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Einar=20J=C3=B8rgen=20Haraldseid?= Date: Sat, 3 Jun 2017 10:04:52 +0200 Subject: [PATCH] Slightly less derpy way to let the pipeline play --- example0.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/example0.py b/example0.py index 8254be8..d06f942 100644 --- a/example0.py +++ b/example0.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # An even simpler gstreamer example, omitting all that class stuff -import gi, time +import gi gi.require_version('Gst', '1.0') from gi.repository import Gst @@ -24,5 +24,4 @@ audio.link(pulsesink) pipeline.set_state(Gst.State.PLAYING) # Something to do while the pipeline is playing -while True: - time.sleep(0.001) +input() -- 2.30.2