From dc5d2e6167f936c5a5a4001893bf7c8fb066939e Mon Sep 17 00:00:00 2001 From: David Hoyt Date: Wed, 27 Oct 2010 16:58:12 +0200 Subject: [PATCH] plugin: Fix build on MSVC Fixes #633141 --- plugin/gstpythonplugin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/gstpythonplugin.c b/plugin/gstpythonplugin.c index b0c45d5..2a08d19 100644 --- a/plugin/gstpythonplugin.c +++ b/plugin/gstpythonplugin.c @@ -44,6 +44,7 @@ np_init_pygobject (void) PyObject *main_module = NULL; PyObject *mdict = NULL; PyObject *pygtk = NULL; + PyObject *cobject; pygtk = PyImport_ImportModule ("pygtk"); if (pygtk == NULL) { @@ -68,7 +69,7 @@ np_init_pygobject (void) main_module = PyImport_AddModule ("__main__"); mdict = PyModule_GetDict (gobject); - PyObject *cobject = PyMapping_GetItemString (mdict, "_PyGObject_API"); + cobject = PyMapping_GetItemString (mdict, "_PyGObject_API"); if (cobject == NULL) { GST_WARNING ("could not find _PyGObject_API"); goto beach; -- 2.7.4