pbutils: Check that pygst_init() succeeded
This commit is contained in:
parent
ab46967800
commit
4af2afe2c6
@ -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…
x
Reference in New Issue
Block a user