mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-07 06:52:41 +00:00
parent
89bda041ac
commit
dc5d2e6167
1 changed files with 2 additions and 1 deletions
|
@ -44,6 +44,7 @@ np_init_pygobject (void)
|
||||||
PyObject *main_module = NULL;
|
PyObject *main_module = NULL;
|
||||||
PyObject *mdict = NULL;
|
PyObject *mdict = NULL;
|
||||||
PyObject *pygtk = NULL;
|
PyObject *pygtk = NULL;
|
||||||
|
PyObject *cobject;
|
||||||
|
|
||||||
pygtk = PyImport_ImportModule ("pygtk");
|
pygtk = PyImport_ImportModule ("pygtk");
|
||||||
if (pygtk == NULL) {
|
if (pygtk == NULL) {
|
||||||
|
@ -68,7 +69,7 @@ np_init_pygobject (void)
|
||||||
main_module = PyImport_AddModule ("__main__");
|
main_module = PyImport_AddModule ("__main__");
|
||||||
mdict = PyModule_GetDict (gobject);
|
mdict = PyModule_GetDict (gobject);
|
||||||
|
|
||||||
PyObject *cobject = PyMapping_GetItemString (mdict, "_PyGObject_API");
|
cobject = PyMapping_GetItemString (mdict, "_PyGObject_API");
|
||||||
if (cobject == NULL) {
|
if (cobject == NULL) {
|
||||||
GST_WARNING ("could not find _PyGObject_API");
|
GST_WARNING ("could not find _PyGObject_API");
|
||||||
goto beach;
|
goto beach;
|
||||||
|
|
Loading…
Reference in a new issue