gst/gstbus.override (_wrap_gst_bus_add_watch): This function incorrectly returned...
authorMartin Soto <martinsoto@users.sourceforge.net>
Mon, 19 Dec 2005 17:49:30 +0000 (17:49 +0000)
committerMartin Soto <martinsoto@users.sourceforge.net>
Mon, 19 Dec 2005 17:49:30 +0000 (17:49 +0000)
Original commit message from CVS:
2005-12-19  Martin Soto  <martinsoto@users.sourceforge.net>

* gst/gstbus.override (_wrap_gst_bus_add_watch): This function
incorrectly returned self, which was causing the message bus to
get prematurely destroyed by the Python interpreter. Now returns
Py_None.

ChangeLog
gst/gstbus.override

index 880cc02..e0655b8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-12-19  Martin Soto  <martinsoto@users.sourceforge.net>
+
+       * gst/gstbus.override (_wrap_gst_bus_add_watch): This function
+       incorrectly returned self, which was causing the message bus to
+       get prematurely destroyed by the Python interpreter. Now returns
+       Py_None.
+
 2005-12-19  Edward Hervey  <edward@fluendo.com>
 
        * gst/gst.override:
index 9ab18a9..7824304 100644 (file)
@@ -179,8 +179,8 @@ _wrap_gst_bus_set_sync_handler (PyGObject *self, PyObject *args)
                       (GstBusSyncHandler) bus_sync_handler, 
                       data);
 
-    return (PyObject*) self;
-
+    Py_INCREF(Py_None);
+    return Py_None;
 }
 %%
 override gst_bus_add_watch args