#!/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
pipeline.set_state(Gst.State.PLAYING)
# Something to do while the pipeline is playing
-while True:
- time.sleep(0.001)
+input()