Commit graph

151 commits

Author SHA1 Message Date
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
Edward Hervey
c52a37cd82 gst/: Use Py_BuildValue to construct tuples.
Original commit message from CVS:
reviewed by: Edward Hervey  <edward@fluendo.com>
* gst/gstelement.override:
* gst/gstevent.override:
* gst/gstmessage.override:
* gst/gstpad.override:
* gst/gstquery.override:
Use Py_BuildValue to construct tuples.
Use tuples for collection of different objects.
See http://www.python.org/doc/faq/general/#why-are-there-separate-tuple-and-list-data-types
* testsuite/test_event.py:
[message|query|event].parse_* now return tuples and not list.
Fixes #334548
2006-07-03 09:01:18 +00:00
Edward Hervey
90340f1908 testsuite/gstpython.supp: Keeping suppresions
Original commit message from CVS:
* testsuite/gstpython.supp:
Keeping suppresions
2006-06-13 17:43:40 +00:00
Edward Hervey
3925d35f03 testsuite/gstpython.supp: Tim might have fixed this suppression. Commenting it.
Original commit message from CVS:
* testsuite/gstpython.supp:
Tim might have fixed this suppression. Commenting it.
2006-06-13 16:52:05 +00:00
Edward Hervey
2364764ea2 testsuite/gstpython.supp: One more suppression added to bug #344761
Original commit message from CVS:
* testsuite/gstpython.supp:
One more suppression added to bug #344761
2006-06-13 14:43:41 +00:00
Edward Hervey
dd235df297 testsuite/gstpython.supp: Added suppresion for leaks of bug #344761.
Original commit message from CVS:
* testsuite/gstpython.supp:
Added suppresion for leaks of bug #344761.
2006-06-13 13:28:47 +00:00
Edward Hervey
15c83c45a0 Ignore log files.
Original commit message from CVS:
* .cvsignore:
* testsuite/.cvsignore:
Ignore log files.
2006-06-13 11:05:08 +00:00
Edward Hervey
8c3aae3818 testsuite/: Added cleanup file to initialize registry before running checks.
Original commit message from CVS:
* testsuite/Makefile.am:
* testsuite/runtests.py:
* testsuite/cleanup.py:
Added cleanup file to initialize registry before running checks.
Added G_DEBUG=gc-friendly to valgrinding
Only test test_*.py files
2006-06-12 16:51:36 +00:00
Edward Hervey
2bd7a2b2e2 pygst.py.in: Don't import non-used modules
Original commit message from CVS:
* pygst.py.in:
Don't import non-used modules
* testsuite/Makefile.am:
Heavy valgrinding por favor !
(%.valgrind): with always-malloc for GSlice
2006-06-09 14:19:16 +00:00
Edward Hervey
981bd2cbd8 pygst.py.in: Don't import non-used modules
Original commit message from CVS:
* pygst.py.in:
Don't import non-used modules
* testsuite/Makefile.am:
Heavy valgrinding por favor !
2006-06-09 14:15:53 +00:00
Edward Hervey
bc17f73dcb codegen/: Updated codegenerator to current pygtk one.
Original commit message from CVS:
* codegen/Makefile.am:
* codegen/argtypes.py:
* codegen/codegen.py:
* codegen/definitions.py:
* codegen/defsconvert.py:
* codegen/defsparser.py:
* codegen/docextract.py:
* codegen/docextract_to_xml.py:
* codegen/docgen.py:
* codegen/h2def.py:
* codegen/mergedefs.py:
* codegen/missingdefs.py:
* codegen/mkskel.py:
* codegen/override.py:
* codegen/reversewrapper.py:
Updated codegenerator to current pygtk one.
* gst/gst.defs:
* gst/gst.override:
* gst/gstpad.override:
Update defs for new constructor definition.
* testsuite/test_bin.py:
With new constructors, pygobject will try to convert the argument to the
proper GType (here a string).
2006-06-09 10:50:21 +00:00
Edward Hervey
6dc2d5f8fe testsuite/python.supp: Added suppressions for FC5 64 bit
Original commit message from CVS:
* testsuite/python.supp:
Added suppressions for FC5 64 bit
2006-05-09 10:25:17 +00:00
Stefan Kost
3d27036e7a testsuite/test-object.h: Fix broken GObject macros
Original commit message from CVS:
* testsuite/test-object.h:
Fix broken GObject macros
2006-04-08 18:46:44 +00:00
Edward Hervey
2afe4a0c32 testsuite/test_ghostpad.py: more assertions to figure out an speed issue.
Original commit message from CVS:
* testsuite/test_ghostpad.py:
more assertions to figure out an speed issue.
2006-04-07 17:58:18 +00:00
Edward Hervey
51352b1a2e Makefile.am: make check-valgrind calls make valgrind in the testsuite directory.
Original commit message from CVS:
* Makefile.am:
make check-valgrind calls make valgrind in the testsuite directory.
* testsuite/Makefile.am:
prepend $(top_srcdir) to PYTHONPATH for all tests so it uses the built
library and not the installed one.
* testsuite/python.supp:
Added suppressions discovered on x86/gentoo.
2006-04-07 15:41:00 +00:00
Edward Hervey
5b30271cd3 testsuite/test_message.py: GstBus is flushing in NULL, so we need to set the pipeline to READY in order to receive th...
Original commit message from CVS:
* testsuite/test_message.py:
GstBus is flushing in NULL, so we need to set the pipeline to READY in
order to receive the messages in the bus watch.
2006-04-05 17:05:43 +00:00
Jan Schmidt
302cdc4a1d testsuite/: Another attempt at making the tests deterministic on the buildbots
Original commit message from CVS:
* testsuite/test_ghostpad.py:
* testsuite/test_pad.py:
Another attempt at making the tests deterministic on the buildbots
2006-03-21 14:01:07 +00:00
Jan Schmidt
883b41a9ff testsuite/test_ghostpad.py: Add while loop in teardown to wait for the pipeline state to hit NULL. Hopefully this wil...
Original commit message from CVS:
* testsuite/test_ghostpad.py:
Add while loop in teardown to wait for the pipeline state
to hit NULL. Hopefully this will ensure the refcount has always hit 1.
2006-03-20 19:08:34 +00:00
Edward Hervey
a21b83f5f5 testsuite/test_event.py: Properly use tempfile
Original commit message from CVS:
* testsuite/test_event.py:
Properly use tempfile
2006-02-01 16:37:41 +00:00
Edward Hervey
0ce8abe73d gst/gst.defs: When using gst.Element.send_event() and gst.Pad.send_event() we keep a refcount on the sent event.
Original commit message from CVS:
* gst/gst.defs:
When using gst.Element.send_event() and gst.Pad.send_event() we keep
a refcount on the sent event.
* testsuite/test_event.py:
Uncomment test to prove above fix
2006-02-01 14:19:55 +00:00
Thomas Vander Stichele
d763780e7f testsuite/test_event.py: add a test case for autoplugging behaviour: create a source, connect probes, store new-segme...
Original commit message from CVS:

* testsuite/test_event.py:
add a test case for autoplugging behaviour:
create a source, connect probes, store new-segment event,
add element in buffer probe callback, and forward event
Currently fails due to refcounting on the stored new-segment
event
2006-02-01 11:52:04 +00:00
Thomas Vander Stichele
2f3f34b7af testsuite/test_element.py: add another link test
Original commit message from CVS:
2006-02-01  Thomas Vander Stichele  <thomas at apestaart dot org>

* testsuite/test_element.py:
add another link test
2006-02-01 11:14:20 +00:00
Edward Hervey
112f72dabc gst/gststructure.override: Properly check for gstvalue data types. This makes it possible to set fields with fractions.
Original commit message from CVS:
* gst/gststructure.override: (_wrap_gst_structure_set_value):
Properly check for gstvalue data types. This makes it possible to
set fields with fractions.
* testsuite/test_caps.py:
* testsuite/test_struct.py:
Test for above modifications
2006-01-08 12:26:35 +00:00
Thomas Vander Stichele
39d037c6d6 prereleasing
Original commit message from CVS:
prereleasing
2005-12-20 15:58:02 +00:00
Andy Wingo
8a6b78b57e testsuite/test_registry.py (RegistryTest.testPluginList): Look for staticelements, not gstcoreelements.
Original commit message from CVS:
2005-12-05  Andy Wingo  <wingo@pobox.com>

* testsuite/test_registry.py (RegistryTest.testPluginList): Look
for staticelements, not gstcoreelements.
2005-12-05 10:58:30 +00:00
Edward Hervey
84a8faf247 gst-interfaces-0.9.pc is no more, update to new use
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
gst-interfaces-0.9.pc is no more, update to new use
* testsuite/test_element.py:
Fix for queue modification
2005-11-30 18:25:53 +00:00
Edward Hervey
53f9716a25 gst/gst.defs: Keep refcount for the message of gst_bus_post()
Original commit message from CVS:
* gst/gst.defs:
Keep refcount for the message of gst_bus_post()
* gst/gststructure.override:
Don't free a structure on dealloc (the parent does that)
* testsuite/test_message.py:
Proper testing of bus functionnality with a mainloop
2005-11-15 15:35:44 +00:00
Johan Dahlin
ca54d806eb add gst.message_application_new test case
Original commit message from CVS:
add gst.message_application_new test case
2005-11-15 14:38:38 +00:00
Thomas Vander Stichele
f2a5a97ac3 add gst.QueryError and use it
Original commit message from CVS:

* gst/gstelement.override:
* gst/pygstexception.c:
* gst/pygstexception.h:
* testsuite/test_element.py:
add gst.QueryError and use it
* testsuite/test_pad.py:
add some tests that show comparison between two different
Python objects wrapping the same MiniObject
2005-10-27 09:51:18 +00:00
Thomas Vander Stichele
723f72b0fb gst/: remove the hash table for miniobjects - since we can't get notified when they get destroyed, we shouldn't be ca...
Original commit message from CVS:

* gst/gst.override:
* gst/pygstminiobject.c:
remove the hash table for miniobjects - since we can't get notified
when they get destroyed, we shouldn't be caching pointer mappings
* testsuite/test_pad.py:
update refcount tests because mini objects now have a ref for
each time an object is made for it
2005-10-27 08:51:20 +00:00
Thomas Vander Stichele
bc97ab9faa state change fix
Original commit message from CVS:
state change fix
2005-10-26 15:03:21 +00:00
Thomas Vander Stichele
eb694830cb testsuite/test_event.py: fix race condition because of state thread
Original commit message from CVS:
* testsuite/test_event.py:
fix race condition because of state thread
2005-10-26 14:53:28 +00:00
Thomas Vander Stichele
c40dff2539 testsuite/test_bin.py: fix race condition because of state thread
Original commit message from CVS:

* testsuite/test_bin.py:
fix race condition because of state thread
2005-10-26 14:29:58 +00:00
Edward Hervey
b07e3f3cf8 gst/: Update (hopefully) final API modifications
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
Update (hopefully) final API modifications
* gst/gstelement.override:
* gst/gstpad.override:
* gst/gstquery.override:
Updated position querying/parsing
Removed useless debug line
* testsuite/test_element.py:
Updated test for new API
2005-10-19 17:32:29 +00:00
Edward Hervey
b06c5a8a9e gst/: Updated API
Original commit message from CVS:
* gst/gst.defs:
* gst/gst-types.defs:
Updated API
* gst/gstelement.override:
_wrap_gst_element_get_state: made wrapper behave more like codegen-ed
functions.
It now only takes an int or long as optional timeout argument, and if
there's no argument it will use GST_CLOCK_TIME_NONE
* testsuite/test_bin.py:
* testsuite/test_event.py:
* testsuite/test_ghostpad.py:
* testsuite/test_pipeline.py:
Updated testsuites for element.get_state() modifications
Added event parsing checks
Commented out test_ghostpad.PipeTest.testProbedLink til I find out why
"while self._handoffs < 10: pass" doesn't exit although it reaches
values way over 10
2005-10-19 15:04:25 +00:00
Thomas Vander Stichele
a96098cba8 gst/: update for latest API changes
Original commit message from CVS:
* gst/gst.defs:
* gst/gstmessage.override:
update for latest API changes
* gst/gstelement.override:
use GstClockTime for get_state
* testsuite/test_pad.py:
add logging
2005-10-19 11:45:34 +00:00
Thomas Vander Stichele
bb5e728f97 add gdb target
Original commit message from CVS:
add gdb target
2005-10-17 15:05:29 +00:00
Edward Hervey
2aa12f0142 gst/gst.defs: Update for new API
Original commit message from CVS:
* gst/gst.defs:
Update for new API
* gst/gst.override:
Added unreffing for gst.Registry.get_plugin_list and .get_feature_list
* testsuite/common.py:
removed crude hack for gst.Registry and gst.Plugin
* testsuite/test_interface.py:
* testsuite/test_caps.py:
* testsuite/test_struct.py:
* testsuite/test_xml.py:
converted to using common's TestCase class
* testsuite/test_event.py:
Enabled/fixed previously non working test
* testsuite/test_registry.py:
Now uses common's TestCase class,
added special case setUp()
2005-10-14 16:26:17 +00:00
Edward Hervey
03f65e4179 gst/: Updated to new API
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
Updated to new API
* gst/gstbus.override:
bus.add_watch() now uses gst_bus_add_watch_full() using
pyg_destroy_notify as the DestroyNotify function, thus enabling
proper python garbage collection.
* testsuite/common.py:
Let's check refcounting of ALL gst.Object
* testsuite/test_bin.py:
Added debug
* testsuite/test_bus.py:
Added "message" signal version of test
2005-10-13 15:56:16 +00:00