plugin: Fix build on MSVC
authorDavid Hoyt <dhoyt@llnl.gov>
Wed, 27 Oct 2010 14:58:12 +0000 (16:58 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 27 Oct 2010 14:59:08 +0000 (16:59 +0200)
Fixes #633141

plugin/gstpythonplugin.c

index b0c45d5..2a08d19 100644 (file)
@@ -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;