From: <bi...@ke...> - 2006-04-28 17:35:39
|
CVS Root: /cvs/gstreamer Module: gst-python Changes by: bilboed Date: Fri Apr 28 2006 17:35:38 UTC Log message: * gst/arg-types.py: Caps used as arguments of virtual methods should keep their initial refcount when calling the python methods. This is similar to the patch done for GstMiniObjects. * gst/gstbase.override: Adjust the gst.BaseTransform.get_unit_size() virtual method for above fix. Modified files: . : ChangeLog gst : arg-types.py gstbase.override Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/ChangeLog.diff?r1=1.453&r2=1.454 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/gst/arg-types.py.diff?r1=1.16&r2=1.17 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/gst/gstbase.override.diff?r1=1.3&r2=1.4 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-python/ChangeLog,v retrieving revision 1.453 retrieving revision 1.454 diff -u -d -r1.453 -r1.454 --- ChangeLog 28 Apr 2006 15:23:52 -0000 1.453 +++ ChangeLog 28 Apr 2006 17:35:26 -0000 1.454 @@ -1,3 +1,13 @@ +2006-04-28 Edward Hervey <ed...@fl...> + + * gst/arg-types.py: + Caps used as arguments of virtual methods should keep their initial + refcount when calling the python methods. + This is similar to the patch done for GstMiniObjects. + * gst/gstbase.override: + Adjust the gst.BaseTransform.get_unit_size() virtual method for above + fix. 2006-04-28 ÐÑÑÑм Ðопов <ar...@gm...> reviewed by: Edward Hervey <ed...@fl...> Index: arg-types.py RCS file: /cvs/gstreamer/gst-python/gst/arg-types.py,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- arg-types.py 28 Apr 2006 15:07:41 -0000 1.16 +++ arg-types.py 28 Apr 2006 17:35:26 -0000 1.17 @@ -192,7 +192,7 @@ " py_%s = Py_None;\n" "}" % (self.name, self.name, self.name, self.name)), - cleanup=("Py_DECREF(py_%s);" % self.name)) + cleanup=("gst_caps_ref(%s);\nPy_DECREF(py_%s);" % (self.name, self.name))) self.wrapper.add_pyargv_item("py_%s" % self.name) matcher.register_reverse('GstCaps*', GstCapsParam) Index: gstbase.override RCS file: /cvs/gstreamer/gst-python/gst/gstbase.override,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- gstbase.override 28 Apr 2006 15:23:52 -0000 1.3 +++ gstbase.override 28 Apr 2006 17:35:26 -0000 1.4 @@ -472,7 +472,7 @@ } if (caps) - py_caps = pyg_boxed_new(GST_TYPE_CAPS, caps, FALSE, TRUE); // should copyval be TRUE instead? + py_caps = pyg_boxed_new(GST_TYPE_CAPS, caps, FALSE, FALSE); // should copyval be TRUE instead? else { Py_INCREF (Py_None); py_caps = Py_None; |