From: Martin Soto Date: Mon, 19 Dec 2005 17:49:30 +0000 (+0000) Subject: gst/gstbus.override (_wrap_gst_bus_add_watch): This function incorrectly returned... X-Git-Tag: 1.19.3~485^2~897 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3b9836bbd0eb5b1c90cc03b166f32e8a93e418e;p=platform%2Fupstream%2Fgstreamer.git gst/gstbus.override (_wrap_gst_bus_add_watch): This function incorrectly returned self, which was causing the message... Original commit message from CVS: 2005-12-19 Martin Soto * 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. --- diff --git a/ChangeLog b/ChangeLog index 880cc02..e0655b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-12-19 Martin Soto + + * 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 * gst/gst.override: diff --git a/gst/gstbus.override b/gst/gstbus.override index 9ab18a9..7824304 100644 --- a/gst/gstbus.override +++ b/gst/gstbus.override @@ -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