git.slaskete.net
/
python-gstreamer-examples
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quit function should reference self
[python-gstreamer-examples]
/
example0.py
diff --git
a/example0.py
b/example0.py
index 8254be8dde8b5550bf09e51b884004e0cd870f3b..d06f942a24419d6ba49b24853d97a7e40d683817 100644
(file)
--- a/
example0.py
+++ b/
example0.py
@@
-1,7
+1,7
@@
#!/usr/bin/env python
# An even simpler gstreamer example, omitting all that class stuff
#!/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
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
pipeline.set_state(Gst.State.PLAYING)
# Something to do while the pipeline is playing
-while True:
- time.sleep(0.001)
+input()