projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab46967
)
pbutils: Check that pygst_init() succeeded
author
Edward Hervey
<bilboed@bilboed.com>
Tue, 9 Nov 2010 09:58:04 +0000
(10:58 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Tue, 9 Nov 2010 10:04:13 +0000
(11:04 +0100)
gst/pbutilsmodule.c
patch
|
blob
|
history
diff --git
a/gst/pbutilsmodule.c
b/gst/pbutilsmodule.c
index
c46621f
..
215eca7
100644
(file)
--- 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);