pad: fix unit test again after previous commit
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 7 Mar 2012 16:50:11 +0000 (16:50 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 7 Mar 2012 16:50:11 +0000 (16:50 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=660357

gst/gstpad.override

index f8a65a4..db1fa49 100644 (file)
@@ -900,7 +900,7 @@ data_probe_callback_marshal(GstPad *pad, GstMiniObject *obj, gpointer user_data)
     }
 
     if (args == NULL) {
-        ret = NULL;
+        ret = FALSE;
         goto beach;
     }
 
@@ -1401,7 +1401,7 @@ pad_block_callback_marshal(GstPad *pad, gboolean blocked, gpointer user_data)
         Py_DECREF (tmp);
     }
 
-    if (args != NULL)
+    if (args == NULL)
         goto beach;
 
     ret = PyObject_CallObject(callback, args);