From: Einar Jørgen Haraldseid Date: Sat, 3 Jun 2017 08:04:52 +0000 (+0200) Subject: Slightly less derpy way to let the pipeline play X-Git-Url: https://git.slaskete.net/python-gstreamer-examples/commitdiff_plain/ae92aaf74fbd9c6ca34ef2984dfdfaaa1e97c5f1?ds=inline;hp=16da69ecfba52fe2221aa9b7132b74f7a1a82eb8 Slightly less derpy way to let the pipeline play --- 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()