From 4af2afe2c67a66037620ad635ee618d263155e55 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 9 Nov 2010 10:58:04 +0100 Subject: [PATCH] pbutils: Check that pygst_init() succeeded --- gst/pbutilsmodule.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/pbutilsmodule.c b/gst/pbutilsmodule.c index c46621fd16..215eca712f 100644 --- a/gst/pbutilsmodule.c +++ b/gst/pbutilsmodule.c @@ -45,6 +45,11 @@ initpbutils (void) /* Make sure gst module is loaded and ready */ gst = pygst_init (); + if (PyErr_Occurred ()) { + PyErr_Print (); + Py_FatalError ("can't initialize module gst.pbutils"); + } + gst_pb_utils_init (); m = Py_InitModule ("pbutils", pypbutils_functions);