[gst-cvs] company gst-python: gst-python/ gst-python/gst/

Benjamin Otte company at freedesktop.org
Sat Apr 30 12:08:13 PDT 2005


CVS Root:       /cvs/gstreamer
Module:         gst-python
Changes by:     company
Date:           Sun May 01 2005  05:06:54 EST
Branch:         BRANCH-GSTREAMER-0_8

Log message:
* gst/arg-types.py:
ref the GstData we get in conversions as pygst_data_from_pyobject
doesn't do that
* gst/gst-types.c: (pygst_data_from_pyobject),
(pygst_data_to_pyobject), (PyGstData_from_value),
(PyGstData_to_value):
make GstData <=> GValue conversions use the correct G_VALUE_TYPE and
don't copy the values, but just ref them. Avoids mad buffer copying
* gst/common.h:
include GstData <=> PyObject conversion funcs
* gst/gst.override:
- wrap gst.element_register
- add _pygst_get_plugin to query the plugin used by Python.
Necessary preparation for a Python plugin loader. Returns NULL if
no plugin, in that case gst.element_register registers the element
as part of the running app.
- add a class initializer for gst.Element subtypes, that checks the
variables __gsttemplates__ and __gstdetails__ and makes the correct
gst_element_class_set_element_details and
gst_element_class_add_pad_templates calls from them. Note: This
has issues when virtual methods are enabled.
- add _pygst_element_check_error. This functions checks if Python
code raised an exception and if so calls gst_element_error on the
element and clears the error. Very useful in
loop/chain/get-functions
* gst/gstbuffer.override:
- implement buffer.copy_on_write()
- implement sq_(ass_)[item|slice] functions for GstBuffer
- fix PyBufferProcs to allow writing when buffer is writable
* gst/gstpad.override:
- wrap gst.Pad to call gst_pad_new or gst_pad_new_from_template
automatically based on arguments
- don't attach private pad data to the element private, use
g_object_set_data instead
- make attaching functions to pads use closures. Allows garbage
collecting pads where handlers have been set
- fix _repr function to only print parent element's name if parent
exists
* gst/gstmodule.c: (init_gst):
register GstData <=> GValue conversion

Modified files:
    .               : ChangeLog
    gst             : arg-types.py common.h gst-types.c gst.override
                      gstbuffer.override gstmodule.c gstpad.override

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/ChangeLog.diff?r1=1.157.2.10&r2=1.157.2.11
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/gst/arg-types.py.diff?r1=1.6&r2=1.6.2.1
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/gst/common.h.diff?r1=1.6&r2=1.6.2.1
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/gst/gst-types.c.diff?r1=1.3&r2=1.3.2.1
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/gst/gst.override.diff?r1=1.46.2.1&r2=1.46.2.2
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/gst/gstbuffer.override.diff?r1=1.4.2.3&r2=1.4.2.4
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/gst/gstmodule.c.diff?r1=1.17&r2=1.17.2.1
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/gst/gstpad.override.diff?r1=1.3&r2=1.3.2.1




More information about the Gstreamer-commits mailing list