git.slaskete.net
/
python-gstreamer-examples
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16da69e
)
Slightly less derpy way to let the pipeline play
author
Einar Jørgen Haraldseid
<einar@haraldseid.net>
Sat, 3 Jun 2017 08:04:52 +0000
(10:04 +0200)
committer
Einar Jørgen Haraldseid
<einar@haraldseid.net>
Sat, 3 Jun 2017 08:04:52 +0000
(10:04 +0200)
example0.py
patch
|
blob
|
history
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
-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()