Commit graph

11 commits

Author SHA1 Message Date
Edward Hervey
3e73bfc4b2 gst: Export some pygst API to be used by external modules
Partially fixes #590348
2010-10-18 12:01:02 +02:00
Alessandro Decina
dc6b4f7a0a gst.Structure: raise TypeError when assigning None to a key 2010-08-06 23:18:02 +02:00
Jan Schmidt
71539efe7f values: Fix segfault in the testsuite
It seems pygst_value_from_pyobject should not unref the passed
in object. Wrap the original pygst_value_from_pyobject in a function
that converts unicode python objects and then unrefs the temporary
object after extraction into a GValue.
2009-06-05 23:26:11 +01:00
Thomas Vander Stichele
88f3323bfe Convert unicode objects to utf-8 encoded G_STRINGs 2009-06-01 19:08:47 +02:00
Edward Hervey
34f77d7db3 gst/__init__.py: Added __eq__ method to fractions so we can check if two fractions are equal.
Original commit message from CVS:
* gst/__init__.py:
Added __eq__ method to fractions so we can check if two fractions are
equal.
* gst/pygstvalue.c: (my_gcd), (pygst_value_from_pyobject):
Attempt to simplify gst.Fraction before filling in a GValue.
Fixes #381243
* testsuite/test_caps.py:
* testsuite/test_struct.py:
Minor beauty fixes. framerates are fractions, not floats.
2007-03-01 14:21:52 +00:00
Michael Smith
4d9d385f44 gst/pygstvalue.c: Make buffers-in-gvalues more generic: handle all miniobjects
Original commit message from CVS:
* gst/pygstvalue.c: (pygst_value_init_for_pyobject),
(pygst_value_from_pyobject):
Make buffers-in-gvalues more generic: handle all miniobjects
* testsuite/test_caps.py:
Add a bit to one the test for buffers in caps.
2007-02-25 12:11:34 +00:00
Michael Smith
3a0177e741 gst/pygstvalue.c: Implement gst.Buffer support in GValues (e.g. for caps containing buffers)
Original commit message from CVS:
* gst/pygstvalue.c: (pygst_value_as_pyobject),
(pygst_value_init_for_pyobject), (pygst_value_from_pyobject):
Implement gst.Buffer support in GValues (e.g. for caps containing
buffers)
2007-02-22 16:13:53 +00:00
Edward Hervey
96256ac65c gst/: Added FractionRange type
Original commit message from CVS:
* gst/pygstvalue.c: (pygst_value_as_pyobject),
(pygst_value_init_for_pyobject), (pygst_value_from_pyobject),
(pygst_value_init):
* gst/__init__.py:
Added FractionRange type
* gst/gst-types.defs:
* gst/gst.defs:
* gst/gst.override:
API updates
2005-11-22 14:15:03 +00:00
Edward Hervey
dfa96f5a01 gst/: API updates
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
API updates
* gst/pygstvalue.c: (pygst_value_as_pyobject),
(pygst_value_from_pyobject):
Fixes for gst_value_array and GST_FOURCC_FORMAT
2005-11-21 15:38:03 +00:00
Edward Hervey
cb954fd6d9 gst/pygstvalue.c: FixedList -> Array
Original commit message from CVS:
* gst/pygstvalue.c:
FixedList -> Array
* gst/gst.defs:
Updating defs file.
2005-07-20 18:06:10 +00:00
Edward Hervey
c68afb5f53 Backport from 0.8 branch and added new .defs file from GStreamer 0.9
Original commit message from CVS:
Backport from 0.8 branch and added new .defs file from GStreamer 0.9
2005-06-17 10:59:47 +00:00