projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python: Add a Gst.init_python function to be called from plugins
[platform/upstream/gstreamer.git]
/
subprojects
/
gst-python
/
examples
/
plugins
/
python
/
py_audiotestsrc.py
diff --git
a/subprojects/gst-python/examples/plugins/python/py_audiotestsrc.py
b/subprojects/gst-python/examples/plugins/python/py_audiotestsrc.py
index
5e5ef3b
..
3684d67
100644
(file)
--- a/
subprojects/gst-python/examples/plugins/python/py_audiotestsrc.py
+++ b/
subprojects/gst-python/examples/plugins/python/py_audiotestsrc.py
@@
-22,6
+22,8
@@
except ImportError:
Gst.error('py_audiotestsrc requires numpy')
raise
+Gst.init_python()
+
OCAPS = Gst.Caps.from_string (
'audio/x-raw, format=F32LE, layout=interleaved, rate=44100, channels=2')