Commit graph

189 commits

Author SHA1 Message Date
Edward Hervey 7c6041d479 Add test_audio.py. 2009-08-21 16:41:29 +02:00
Sebastian Dröge aa92fc1bd7 Use LC_ALL=C for the tests as some are comparing localized strings
Fixes bug #590803.
2009-08-08 22:49:16 +02:00
Edward Hervey 7ad1b84f50 gst.Message: Wrap remaining parse_*() methods. 2009-07-01 13:54:57 +02:00
Edward Hervey eb2aedc523 gst.Message: Add overrides for new 0.10.24 messages 2009-07-01 12:30:59 +02:00
Edward Hervey f1bbb486ae gst.Event: Add override for step event 2009-07-01 12:30:40 +02:00
Thomas Vander Stichele 26fa6dd184 wrap gst_tag_to_vorbis_comment; fix uint tag setting
Setting gst.TAG_TRACK_NUMBER was failing because GStreamer
expects a uint while Python object -> GValue conversion was
giving an int.  gst_tag_to_vorbis_comment was wrapped so
this conversion could be tested and failed on properly.
2009-06-01 22:02:47 +02:00
Thomas Vander Stichele 88f3323bfe Convert unicode objects to utf-8 encoded G_STRINGs 2009-06-01 19:08:47 +02:00
Edward Hervey 3252c0ee73 testsuite: Dist new test file. 2009-04-23 17:14:20 +02:00
Thomas Vander Stichele 12a210c613 TIME_ARGS: Catch bad input. Fixes #579455 2009-04-23 17:08:04 +02:00
Thomas Vander Stichele 62d82ad5b6 Merge branch 'bz-577735' 2009-04-15 22:38:28 +02:00
Edward Hervey 0a1bfa3ee1 test_adapter: No longer use slices (which was wrong to start with). 2009-04-11 16:49:42 +02:00
Alessandro Decina 1cd54e6d45 Fix uninstalled usage with python 2.6. Fixes #576546
Also imports submodules as mentionned by Philippe Normand.
2009-04-11 16:22:06 +02:00
Thomas Vander Stichele f99e67aa24 make sure that we actually get the clock-provide message 2009-04-02 18:06:12 +02:00
Thomas Vander Stichele dd6bf4a4d4 Fix for #577735: do_handle_message leaks messages 2009-04-02 17:21:58 +02:00
Edward Hervey 7aef2834cf New guint8* ArgType. Wraps the various GstAdapter methods. Fixes #576505 2009-03-26 16:13:48 +01:00
Alessandro Decina 0fd4db686b gstbus: fix refcounting in gst.Bus.set_sync_handler. 2009-03-17 15:03:09 +01:00
Edward Hervey 51ac26b86c GstPad: Use gst_pad_set_blocked_async_full() if available.
Avoids leaking arguments.
Fixes #514717
2009-02-22 20:12:23 +01:00
Edward Hervey 3a000ecaa4 Add a rule to generate valgrind suppressions for a single test. 2009-02-09 13:54:50 +01:00
Edward Hervey 3b6ab11761 Raise an Exception when wrapping a NULL GstIterator.
Original commit message from CVS:
* gst/pygstiterator.c: (pygst_iterator_new):
* testsuite/test_iterator.py:
Raise an Exception when wrapping a NULL GstIterator.
Fixes #566903
2009-01-08 12:25:26 +00:00
Edward Hervey 7a2babed30 codegen/argtypes.py: Add handling of 'keep-refcount' for GBoxed arguments.
Original commit message from CVS:
* codegen/argtypes.py:
Add handling of 'keep-refcount' for GBoxed arguments.
* gst/gst.defs:
Mark the appropriate 'gst_message_new_*' arguments when the method
takes the ownership of the passed gst.Structure/gst.TagList
* testsuite/test_message.py:
Test for creating messages that take a gst.Structure/gst.TagList as
argument and make sure they're properly created.
Fixes #556054
2008-12-06 15:41:41 +00:00
Edward Hervey d658b7b222 testsuite/Makefile.am: Add a way to run individual tests. 'make test_bin.py.check' for example.
Original commit message from CVS:
* testsuite/Makefile.am:
Add a way to run individual tests.
'make test_bin.py.check' for example.
2008-12-06 15:39:01 +00:00
Edward Hervey a7d29b2f47 testsuite/test_event.py: Sinks now send GST_EVENT_LATENCY events upstream. Adapt test for that new behaviour.
Original commit message from CVS:
* testsuite/test_event.py:
Sinks now send GST_EVENT_LATENCY events upstream. Adapt test for that
new behaviour.
2008-12-06 14:10:51 +00:00
Alessandro Decina 47a3d6fd28 Wrap gst_type_find_peek.
Original commit message from CVS:
* gst/gst.override:
* testsuite/test_typefind.py:
Wrap gst_type_find_peek.
2008-11-19 16:54:58 +00:00
Edward Hervey 4373919e96 testsuite/test_interface.py: Don't hardcode 'alsasrc' for testing GstMixer and GstPropertyProbe interfaces, but inste...
Original commit message from CVS:
* testsuite/test_interface.py:
Don't hardcode 'alsasrc' for testing GstMixer and GstPropertyProbe
interfaces, but instead search one through the registry.
If none are available, return gracefully.
2008-06-27 10:42:38 +00:00
Edward Hervey 99cbd6dec4 testsuite/test_xml.py: Don't attempt to test gst.XML if there's no available libxml2 module.
Original commit message from CVS:
* testsuite/test_xml.py:
Don't attempt to test gst.XML if there's no available libxml2 module.
2008-06-27 10:29:58 +00:00
Jan Schmidt 468cb05597 gst/gstbuffer.override: the GstBuffer overrides seem to be confused about whether they're mini-objects or a GBoxed, a...
Original commit message from CVS:
* gst/gstbuffer.override:
the GstBuffer overrides seem to be confused about whether they're
mini-objects or a GBoxed, and it makes copy_on_write no actually
return a usable gst.Buffer. Fix up places where GstBuffers are
treated as GBoxed to use pygstminiobject functions.
Makes gst.Buffer('blah').copy_on_write() work.
* testsuite/test_buffer.py:
Add test for copy-on-write writability
* examples/buffer-draw.py:
Add an example of drawing on a GStreamer buffer with cairo
* gst/gstpad.override:
Make function static
2008-06-27 08:39:37 +00:00
Edward Hervey 6c881f6ab6 Re-opens #530417
Original commit message from CVS:
* gst/__init__.py:
* gst/gstelement.override:
* testsuite/test_element.py:
Revert 2008-05-08  Edward Hervey  <edward.hervey@collabora.co.uk>
Re-opens #530417
2008-06-13 11:11:38 +00:00
Edward Hervey 7e06ad12c6 Re-opens #514717
Original commit message from CVS:
* gst/gstpad.override:
* testsuite/test_pad.py:
Revert 2008-02-10  Alessandro Decina  <alessandro@nnva.org>
Re-opens #514717
2008-06-12 11:11:49 +00:00
Johan Dahlin 98d6484e8c New 'fancy' constructor for gst.Element, allows creating elements in a more pythonic way (i.e. myelement = gst.Elemen...
Original commit message from CVS:
Patch by: Johan Dahlin  <johan at gnome dot org>
* gst/__init__.py:
* gst/gstelement.override:
* testsuite/test_element.py:
New 'fancy' constructor for gst.Element, allows creating elements in a
more pythonic way (i.e. myelement = gst.Element("oggmux")).
Fixes #530417
2008-05-08 14:06:45 +00:00
Edward Hervey c68b638588 Fix memleak in gst.Pad.set_blocked_async()
Original commit message from CVS:
reviewed by: Edward Hervey  <edward.hervey@collabora.co.uk>
* gst/gstpad.override:
* testsuite/test_pad.py:
Fix memleak in gst.Pad.set_blocked_async()
Fixes #514717
2008-02-10 13:33:26 +00:00
Edward Hervey 7b27608a71 Series of update for new API added to 0.10.16.
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/base.defs:
* gst/gst-0.10.15.ignore:
* gst/gst-0.10.16.ignore:
* gst/gst-pb-0.10.15.ignore:
* gst/gst-pb-0.10.16.ignore:
* gst/gst.defs:
* gst/gstversion.override.in:
* gst/pbutils.override:
* testsuite/test_pbutils.py:
Series of update for new API added to 0.10.16.
Remove wrong ignore file for 0.10.15 -base.
2008-01-14 12:44:06 +00:00
Edward Hervey 45b80b1e8c Re-implement wrapping of gst_pad_add_*probe in order to avoid leaks of user-data associated with the probes.
Original commit message from CVS:
reviewed by: Edward Hervey  <edward.hervey@collabora.co.uk>
* gst/gstpad.override:
* testsuite/test_pad.py:
Re-implement wrapping of gst_pad_add_*probe in order to avoid leaks of
user-data associated with the probes.
Fixes #504786
2008-01-13 17:57:48 +00:00
Edward Hervey f6bd62ac46 gst/Makefile.am: gst.pbutils also needs to handle miniobjects
Original commit message from CVS:
* gst/Makefile.am:
gst.pbutils also needs to handle miniobjects
* gst/pbutils.defs:
Add new InstallPluginsContext boxed definition.
All the *_new() functions should be accessible (and not act as
constructors).
* gst/pbutils.override:
Add override for install_plugins_sync().
* gst/pbutilsmodule.c:
Add pygst_debug debug category in this module too.
* testsuite/test_pbutils.py:
Test existence of new API. Needs more tests.
2008-01-11 16:30:45 +00:00
Edward Hervey cd3d33a4a6 gst/: new gst.pbutils module that wraps the gst-plugins-base pbutils helper library.
Original commit message from CVS:
* gst/Makefile.am:
* gst/common.h:
* gst/pbutils.defs:
* gst/pbutils.override:
* gst/pbutilsmodule.c: (initpbutils):
new gst.pbutils module that wraps the gst-plugins-base pbutils
helper library.
* testsuite/Makefile.am:
* testsuite/common.py:
* testsuite/test_pbutils.py:
Test case for gst.pbutils
Fixes #472822
2008-01-01 13:22:21 +00:00
Edward Hervey f6294fea73 testsuite/: Fix unit tests for pygobject >= 2.13.0
Original commit message from CVS:
* testsuite/common.py:
* testsuite/test_bin.py:
* testsuite/test_element.py:
* testsuite/test_ghostpad.py:
* testsuite/test_pad.py:
* testsuite/test_pipeline.py:
Fix unit tests for pygobject >= 2.13.0
See the pygobject bug #320428 for more information about the changes.
2007-10-09 14:27:18 +00:00
Johan Dahlin 1b1b56c762 gst/__init__.py: Implement multiplication, divison and float coercing for fractions.
Original commit message from CVS:

* gst/__init__.py: Implement multiplication, divison and float
coercing for fractions.

* testsuite/test_fraction.py:
Add fraction tests
2007-03-18 17:45:16 +00:00
Johan Dahlin 51baae336c Implement sq_contains and add tests for gst.TagList.
Original commit message from CVS:
* gst/gsttaglist.override (_wrap_gst_tag_list_contains):
* testsuite/test_taglist.py (TestTagList.testKeys):

Implement sq_contains and add tests for gst.TagList.
2007-03-17 13:36:48 +00: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 e4bd9d306c testsuite/test_caps.py: Add test for gst.Buffer in caps.
Original commit message from CVS:
* testsuite/test_caps.py:
Add test for gst.Buffer in caps.
2007-02-24 14:14:14 +00:00
Edward Hervey 9a4fa9567c testsuite/common.py: A private variable of unittest.TestCase changed name in python 2.5.
Original commit message from CVS:
* testsuite/common.py:
A private variable of unittest.TestCase changed name in python 2.5.
This fixes make check with python2.5
2007-02-04 11:40:09 +00:00
Edward Hervey 1856ed8de0 gst/gstpad.override: Allow removing the negotiated pads of a cap by setting them to None.
Original commit message from CVS:
reviewed by: Edward Hervey  <edward@fluendo.com>
* gst/gstpad.override:
Allow removing the negotiated pads of a cap by setting them to None.
* testsuite/test_pad.py:
Added un-negotian of pads' caps to test above patch.
Fixes #363795
2007-02-04 10:54:48 +00:00
Edward Hervey 04a182516c Fully implement GstPropertyProbe interface, with unit test.
Original commit message from CVS:
reviewed by: Edward Hervey  <edward@fluendo.com>
* gst/interfaces.defs:
* gst/interfaces.override:
* testsuite/test_interface.py:
Fully implement GstPropertyProbe interface, with unit test.
Fixes #376996
2007-02-04 10:23:38 +00:00
Edward Hervey c5741e1c64 Add ignore file for 0.10.12 API additions
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/gstversion.override.in:
* gst/gst-0.10.12.ignore:
Add ignore file for 0.10.12 API additions
* gst/gst.defs:
* gst/base.defs:
* gst/gst-types.defs:
Add new API definitions
* gst/gst-0.10.10.ignore:
* gst/gst-0.10.11.ignore:
Fixup ignore files.
* testsuite/test_segment.py:
The update return value is uncertain and will soon be deprecated, don't
check against it anymore.
2007-01-26 11:58:55 +00:00
Edward Hervey d6df984612 gst/gst.defs: Update API definitions.
Original commit message from CVS:
* gst/gst.defs:
Update API definitions.
* gst/common.h:
* gst/gstpad.override:
Add wrapper functions for settings activate, activatepull and
activatepush functions on pads.
* gst/gst.override:
Wrapper for gst_segment_set_seek() and gst_segment_clip()
Remove global ignore for *_init(), allows gst_segment_init() to be
properly code-generated.
* testsuite/Makefile.am:
* testsuite/test_segment.py:
Add unit test for gst.Segment object.
2006-12-19 11:38:01 +00:00
Edward Hervey b20b1ec8c3 testsuite/test_pad.py: Activate pads before using them.
Original commit message from CVS:
* testsuite/test_pad.py:
Activate pads before using them.
2006-12-16 15:33:02 +00:00
Edward Hervey 460307745b ltihooks.py: Removed
Original commit message from CVS:
* ltihooks.py:
Removed
* testsuite/common.py:
ltihooks is dead, long live gstltihooks. This should complete thomas'
fix of #357310.
2006-09-29 09:53:11 +00:00
Edward Hervey 389ed247ab testsuite/test_pad.py: The bug was not a bug. Fixed the typo.
Original commit message from CVS:
* testsuite/test_pad.py:
The bug was not a bug. Fixed the typo.
2006-08-29 09:23:59 +00:00
Thomas Vander Stichele 7e1fa1d97e testsuite/test_pad.py: add a test for event probes - shows a bug, for which I commented the failUnless out
Original commit message from CVS:
* testsuite/test_pad.py:
add a test for event probes - shows a bug, for which I commented
the failUnless out
2006-08-29 07:43:42 +00:00
Edward Hervey bc234e3800 configure.ac: If pygobject is available, only build with it, else try to find pygtk to stay compatible with older ver...
Original commit message from CVS:
* configure.ac:
If pygobject is available, only build with it, else try to find pygtk
to stay compatible with older version.
* gst/Makefile.am:
Switch to pygobject CFLAGS.
* testsuite/Makefile.am:
Switch to pygobject CFLAGS.
2006-08-21 11:31:51 +00:00