pbutils: Check that pygst_init() succeeded

This commit is contained in:
Edward Hervey 2010-11-09 10:58:04 +01:00
parent ab46967800
commit 4af2afe2c6

View file

@ -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);