mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
pbutils: Check that pygst_init() succeeded
This commit is contained in:
parent
ab46967800
commit
4af2afe2c6
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ initpbutils (void)
|
||||||
|
|
||||||
/* Make sure gst module is loaded and ready */
|
/* Make sure gst module is loaded and ready */
|
||||||
gst = pygst_init ();
|
gst = pygst_init ();
|
||||||
|
if (PyErr_Occurred ()) {
|
||||||
|
PyErr_Print ();
|
||||||
|
Py_FatalError ("can't initialize module gst.pbutils");
|
||||||
|
}
|
||||||
|
|
||||||
gst_pb_utils_init ();
|
gst_pb_utils_init ();
|
||||||
|
|
||||||
m = Py_InitModule ("pbutils", pypbutils_functions);
|
m = Py_InitModule ("pbutils", pypbutils_functions);
|
||||||
|
|
Loading…
Reference in a new issue