Commit graph

541 commits

Author SHA1 Message Date
Edward Hervey
28b45522be gst/base.defs: Use gchar* instead of guint8* for GstAdapter
Original commit message from CVS:
* gst/base.defs:
Use gchar* instead of guint8* for GstAdapter
Added virtual methods definitions for base classes.
Still have to override some functions, and figure
out how to properly add reverse wrappers to the codegenerator.
2006-01-05 14:49:27 +00:00
Edward Hervey
94688fea61 First step at wrapping base elements in gst-python
Original commit message from CVS:
First step at wrapping base elements in gst-python
* configure.ac:
Commenting out weird debugging statement dating from gst-python's
and which causes problems with gstbasesrc.h anonymous union.
* gst/Makefile.am:
Added base.defs
* gst/base.defs:
New base elements definition files
* gst/gst.defs:
* gst/gst.override:
Add base elements
2006-01-01 21:18:28 +00:00
Thomas Vander Stichele
22aa40802a releasing 0.10.1
Original commit message from CVS:
releasing 0.10.1
2005-12-23 18:10:51 +00:00
Thomas Vander Stichele
915b66d2f1 install in pyexecdir as well
Original commit message from CVS:

* configure.ac:
* gst/Makefile.am:
* gst/extend/Makefile.am:
install in pyexecdir as well
2005-12-22 15:56:41 +00:00
Thomas Vander Stichele
2986e09cfe pygst.py.in: give the correct error when not finding the version
Original commit message from CVS:
* pygst.py.in: give the correct error when not finding the version
2005-12-22 11:20:44 +00:00
Edward Hervey
1170d64e5f gst/gst-types.defs: Added GstStaticCaps and GstStaticPadTemplate, using the new GType.
Original commit message from CVS:
* gst/gst-types.defs:
Added GstStaticCaps and GstStaticPadTemplate, using the new GType.
* gst/gst.defs:
Doesn't return a const anymore.
* gst/gstelementfactory.override:
Wrapped gst_element_factory_get_static_pad_templates()
2005-12-20 11:15:50 +00:00
Martin Soto
d3b9836bbd gst/gstbus.override (_wrap_gst_bus_add_watch): This function incorrectly returned self, which was causing the message...
Original commit message from CVS:
2005-12-19  Martin Soto  <martinsoto@users.sourceforge.net>

* gst/gstbus.override (_wrap_gst_bus_add_watch): This function
incorrectly returned self, which was causing the message bus to
get prematurely destroyed by the Python interpreter. Now returns
Py_None.
2005-12-19 17:49:30 +00:00
Edward Hervey
c709d39be9 gst/gst.override: ignore gst_object_sink
Original commit message from CVS:
* gst/gst.override:
ignore gst_object_sink
2005-12-19 16:05:34 +00:00
Edward Hervey
ed0b93ff9f gst/: Properly wrap the gst_dp_* functions (cast gchar* to guint8*).
Original commit message from CVS:
* gst/gstlibs.override:
* gst/libs.defs:
Properly wrap the gst_dp_* functions (cast gchar* to guint8*).
2005-12-19 10:45:45 +00:00
Edward Hervey
99aa909d5b gst/gst.override: ignore gst_plugin_get_module, GModule aren't wrapped in pygtk anyway.
Original commit message from CVS:
* gst/gst.override:
ignore gst_plugin_get_module, GModule aren't wrapped in
pygtk anyway.
wrap gst_clock_get_calibration
* gst/gstbus.override:
Ignore the following:
gst_bus_create_watch, since GSource aren't wrapped in pygtk
gst_bus_sync_signal_handler and gst_bus_async_signal_func since
these functions are used by the default bus handler anyway.
* gst/gstevent.override:
wrapped gst_event_parse_buffer_size
* gst/libs.defs:
Replace all guint8* for gst_dp_ functions by gchar * since they
are the same, but at least get generated properly by the code
generator.
2005-12-18 18:15:57 +00:00
Edward Hervey
3ef436193d gst/gst.defs: gst_object_sink is a method of GstObject const of enums is a stupidity (_element_make_from_uri)
Original commit message from CVS:
* gst/gst.defs:
gst_object_sink is a method of GstObject
const of enums is a stupidity (_element_make_from_uri)
* gst/gst.override:
Ignore more functions that have no place in bindings or have better
python equivalents (list filtering for example)
Wrapped gst_version() and gst_type_find_factory_get_list()
* gst/gststructure.override:
More ignores
* gst/gsttaglist.override:
ignore gst_is_tag_list.
* gst/interfaces.override:
wrap gst_mixer_options_get_values()
2005-12-18 17:20:12 +00:00
Andy Wingo
1374aac3fa gst/gstpad.override (handle_event_function_exception)
Original commit message from CVS:
2005-12-16  Andy Wingo  <wingo@pobox.com>

* gst/gstpad.override (handle_event_function_exception)
(handle_chain_function_exception): GCC told me I needed braces
here.
2005-12-16 14:47:12 +00:00
Thomas Vander Stichele
c45f28f872 Follow pygtk's lead in installing pygst.py and .pth in pyexecdir - this will do the right thing on multilib 64 bit
Original commit message from CVS:

* Makefile.am:
* configure.ac:
Follow pygtk's lead in installing pygst.py and .pth in pyexecdir -
this will do the right thing on multilib 64 bit
2005-12-14 17:18:38 +00:00
Edward Hervey
1e233d42c1 examples/gstfile.py: Moved the Discoverer class to gst.extend
Original commit message from CVS:
* examples/gstfile.py:
Moved the Discoverer class to gst.extend
Now works asynchronous... bl**dy fast :)
* gst/extend/Makefile.am:
* gst/extend/discoverer.py:
Discoverer has landed in extend and is now asynchronous.
It emits a 'discovered' signal when it has finished.
2005-12-12 15:15:28 +00:00
Edward Hervey
ddf94ea8fa gst/arg-types.py: This covers for the codegenerator not being able to handle (unsigned) int64 as parameters and retur...
Original commit message from CVS:
* gst/arg-types.py:
This covers for the codegenerator not being able to handle
(unsigned) int64 as parameters and return values.
2005-12-09 13:06:43 +00:00
Edward Hervey
0a43240369 gst/arg-types.py: Added (reverse_)wrapper for GBoxed and GstMiniObject
Original commit message from CVS:
* gst/arg-types.py:
Added (reverse_)wrapper for GBoxed and GstMiniObject
* gst/gst.defs:
push_event() and chain() takes the reference on the
MiniObject.
2005-12-09 12:49:08 +00:00
Edward Hervey
d2bb507a16 gst/gstmessage.override: Fix for memleak
Original commit message from CVS:
* gst/gstmessage.override:
Fix for memleak
2005-12-07 14:41:37 +00:00
Thomas Vander Stichele
2383bf6ded releasing 0.10.0
Original commit message from CVS:
releasing 0.10.0
2005-12-05 18:04:34 +00:00
Edward Hervey
b3e564eff5 gst/gst.defs: Wrapped last pre-0.10 API update (I hope...)
Original commit message from CVS:
* gst/gst.defs: (alloc_buffer_and_set_caps):
Wrapped last pre-0.10 API update (I hope...)
* examples/gstfile.py: (Discoverer._new_decoded_pad_cb):
Fix for fractional framerates.
2005-12-05 13:10:59 +00:00
Edward Hervey
f5f90c4be7 examples/gstfile.py: Fix for fractional framerates.
Original commit message from CVS:
* examples/gstfile.py: (Discoverer._new_decoded_pad_cb):
Fix for fractional framerates.
2005-12-05 12:01:32 +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
Thomas Vander Stichele
5d781f908f releasing 0.9.7
Original commit message from CVS:
releasing 0.9.7
2005-12-01 19:15:26 +00:00
Andy Wingo
3e68928bdd configure.ac (GST_PLUGINS_BASE_LIBS): Check for gstreamer-plugins-base.pc, the one that has the interfaces etc.
Original commit message from CVS:
2005-12-01  Andy Wingo  <wingo@pobox.com>

* configure.ac (GST_PLUGINS_BASE_LIBS): Check for
gstreamer-plugins-base.pc, the one that has the interfaces etc.

* gst/Makefile.am (interfaces_la_CFLAGS, interfaces_la_LDFLAGS):
PLUGINS_BASE, not BASE.
2005-12-01 12:34:46 +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
e19930da1b gst/: Queue is now a plugin, remove static references
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
* gst/gst.override:
Queue is now a plugin, remove static references
2005-11-30 11:50:04 +00:00
Edward Hervey
0d9a68bdbd gst/gst.defs: Update for API changes
Original commit message from CVS:
* gst/gst.defs:
Update for API changes
* gst/gstquery.override:
wrapper for query_parse_seeking()
2005-11-29 17:25:54 +00:00
Edward Hervey
5e1b07e151 gst/gst.override: Ignore all *_full functions/methods
Original commit message from CVS:
* gst/gst.override:
Ignore all *_full functions/methods
* gst/gstbus.override:
Wrapper for gst_bus_add_signal_watch that now takes an optional
priority argument
2005-11-24 11:47:15 +00:00
Thomas Vander Stichele
906028718d back to HEAD
Original commit message from CVS:
back to HEAD
2005-11-23 20:06:52 +00:00
Thomas Vander Stichele
f7fccdb685 releasing 0.9.6
Original commit message from CVS:
releasing 0.9.6
2005-11-23 19:58:39 +00:00
Edward Hervey
fbe483d85b gst/: And more API updated, pom po do pom pom pom....
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
And more API updated, pom po do pom pom pom....
2005-11-23 14:43:26 +00:00
Edward Hervey
d73a152fec gst/interfaces.defs: Update for Interfaces API changes
Original commit message from CVS:
* gst/interfaces.defs:
Update for Interfaces API changes
2005-11-23 10:21:34 +00:00
Edward Hervey
714df8342a gst/: API updates
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
API updates
2005-11-23 09:53:52 +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
Andy Wingo
6592099266 gst/: Run update-funcnames.
Original commit message from CVS:
2005-11-22  Andy Wingo  <wingo@pobox.com>

* gst/gst.defs:
* gst/gstevent.override: Run update-funcnames.
2005-11-22 12:02:41 +00:00
Edward Hervey
b805b03830 gst/xoverlay.defs: Update for API changes in XOverlay interface
Original commit message from CVS:
* gst/xoverlay.defs:
Update for API changes in XOverlay interface
2005-11-22 00:02:14 +00:00
Thomas Vander Stichele
4763324e5d Add an example for the cutter element
Original commit message from CVS:
Add an example for the cutter element
2005-11-21 19:53:17 +00:00
Edward Hervey
94e5acd317 gst/gst-types.defs: GstSegment is properly wrapped
Original commit message from CVS:
* gst/gst-types.defs:
GstSegment is properly wrapped
* gst/gst.defs:
Add GstBin::handle_message virtual method
2005-11-21 19:13:57 +00:00
Edward Hervey
767ea14800 gst/gst.override: Take either int or longs and return unsigned long long
Original commit message from CVS:
* gst/gst.override: (_wrap_GST_TIME_ARGS):
Take either int or longs and return unsigned long long
2005-11-21 18:58:50 +00:00
Edward Hervey
9bee5b3f6a examples/gstfile.py: Cleanup
Original commit message from CVS:
* examples/gstfile.py:
Cleanup
* gst/gst-types.defs:
* gst/gst.defs:
API update.
More fixes to follow.
2005-11-21 18:48:19 +00:00
Andy Wingo
e01f28103c gst/gst.defs (net_client_clock_new): Add some defaults.
Original commit message from CVS:
2005-11-21  Andy Wingo  <wingo@pobox.com>

* gst/gst.defs (net_client_clock_new): Add some defaults.
2005-11-21 16:20:50 +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
Jan Schmidt
19bed1cfaf gst/gst.defs: Rename gst_caps_structure_fixate_* to gst_structure_fixate_* (#322027)
Original commit message from CVS:
* gst/gst.defs:
Rename gst_caps_structure_fixate_* to gst_structure_fixate_*
(#322027)
2005-11-21 14:34:41 +00:00
Edward Hervey
a6c9792b45 gst/: Update for latest API changes
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
Update for latest API changes
Still have to make GstSegment properly wrappable (GBoxed?)
2005-11-21 11:05:33 +00:00
Andy Wingo
e87a22eb62 gst/Makefile.am: Add GST_NET libs. gst/gst.defs (gst_net_time_provider_new)
Original commit message from CVS:
2005-11-18  Andy Wingo  <wingo@pobox.com>

* gst/Makefile.am: Add GST_NET libs.

* gst/gst.defs (gst_net_time_provider_new)
(gst_net_client_clock_new): Add constructors

* configure.ac: Check for gstreamer-net as well.

* gst/gst.override: Include gst/net/gstnet.h.

* gst/gst-types.defs (NetTimeProvider, NetClientClock): Added new
types.
2005-11-18 16:26:05 +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
Thomas Vander Stichele
b10d8306fe back to head
Original commit message from CVS:
back to head
2005-11-11 19:42:50 +00:00
Thomas Vander Stichele
2365b41a15 releasing 0.9.5
Original commit message from CVS:
releasing 0.9.5
2005-11-11 19:42:07 +00:00
Edward Hervey
3076c7c22e gst/gsttaglist.override: put the gst.TagList.keys() method back.
Original commit message from CVS:
* gst/gsttaglist.override:
put the gst.TagList.keys() method back.
2005-11-10 13:03:14 +00:00
Edward Hervey
e3beb3ed78 gst/gstmodule.c: Added GST_TAG_* string constants
Original commit message from CVS:
* gst/gstmodule.c: (init_gst):
Added GST_TAG_* string constants
* gst/gstpad.override:
Make probe handler return TRUE if the Python callback doesn't return
anything.
* gst/gsttaglist.override:
Cleaned up gst.TagList, works as a dictionnary.
2005-11-10 12:48:49 +00:00
Edward Hervey
0ca0d99781 gst/gst.*: Added new function gst.TIME_ARGS which returns the string representation of a GstClockTime
Original commit message from CVS:
* gst/gst.defs:
* gst/gst.override:
Added new function gst.TIME_ARGS which returns the string
representation of a GstClockTime
2005-11-08 17:22:54 +00:00
Edward Hervey
b6650fb5db gst/gstelement.override: So apparently 0 != O :)
Original commit message from CVS:
* gst/gstelement.override:
So apparently 0 != O :)
2005-11-04 18:30:47 +00:00
Edward Hervey
489d9c24a5 gst/gstpad.override: works better now we set the item to the proper position...
Original commit message from CVS:
* gst/gstpad.override:
works better now we set the item to the proper position...
2005-11-04 16:28:15 +00:00
Edward Hervey
bf88eeddbb gst/gstpad.override: Use proper GValue <-> MiniObject conversion function
Original commit message from CVS:
* gst/gstpad.override:
Use proper GValue <-> MiniObject conversion function
* examples/Makefile.am:
* examples/sinkelement.py:
New example showing how to create a sink element in python.
2005-11-04 13:14:59 +00:00
Edward Hervey
6dd77f1aa4 examples/play.py: Fixed the play example to work with 0.9.4 API
Original commit message from CVS:
* examples/play.py:
Fixed the play example to work with 0.9.4 API
2005-11-04 10:14:22 +00:00
Edward Hervey
1912b5b2eb gst/gstelement.override: added wrapper for gst_element_query_duration()
Original commit message from CVS:
* gst/gstelement.override:
added wrapper for gst_element_query_duration()
* gst/gstpad.override:
added wrapper for gst_pad_query_duration()
Also converted some functions using fixed size PyList to use
PyList_SetItem instead of PyList_Append
Closes bug #320357
2005-11-01 18:19:08 +00:00
Edward Hervey
85b73ba53f gst/gst-types.defs: Updated modification from API
Original commit message from CVS:
* gst/gst-types.defs:
Updated modification from API
* gst/gstquery.override:
Added gst_query_parse_duration override
* examples/gstfile.py:
Now use duration query
Cleanups
2005-11-01 15:36:23 +00:00
Edward Hervey
9f09254291 gst/gst.defs: Added 'caller-owns-return' to all gst_[message|event|query]_new_*() wrappers
Original commit message from CVS:
* gst/gst.defs:
Added 'caller-owns-return' to all gst_[message|event|query]_new_*()
wrappers
2005-10-27 14:46:59 +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
Thomas Vander Stichele
015db96c26 back to HEAD
Original commit message from CVS:
back to HEAD
2005-10-23 23:07:28 +00:00
Thomas Vander Stichele
0f9e82bc17 releasing 0.9.4
Original commit message from CVS:
releasing 0.9.4
2005-10-23 23:00:54 +00:00
Edward Hervey
6ba71d7b9a gst/gst.defs: Cleaned-up symbols which still had the gst_ prefix
Original commit message from CVS:
* gst/gst.defs:
Cleaned-up symbols which still had the gst_ prefix
* gst/gst.override:
add gst_deinit to the ignore list
2005-10-22 17:12:15 +00:00
Andy Wingo
1404e0762b gst/gstbin.override (_wrap_gst_bin_get_by_name): Dude, like totally don't unref NULL objects.
Original commit message from CVS:
2005-10-20  Andy Wingo  <wingo@pobox.com>

* gst/gstbin.override (_wrap_gst_bin_get_by_name): Dude, like
totally don't unref NULL objects.
2005-10-20 11:37:04 +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
4faa00625e gst/gstmessage.override: Added wrappers for parsing CLOCK_PROVIDE, CLOCK_LOST, NEW_CLOCK and
Original commit message from CVS:
* gst/gstmessage.override:
Added wrappers for parsing CLOCK_PROVIDE, CLOCK_LOST, NEW_CLOCK and
DURATION messages
Fixed a few Tuple constructors
Last commit from me unless huge breakage, got better things to do now
(and it doesn't involve 'my little pony' comics) !
2005-10-19 15:41:31 +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
Andy Wingo
7fbe25b7a0 examples/pipeline-tester: Fix for state change changes.
Original commit message from CVS:
2005-10-18  Andy Wingo  <wingo@pobox.com>

* examples/pipeline-tester: Fix for state change changes.
2005-10-18 10:29:02 +00:00
Andy Wingo
840d8e2072 Is your message repr t00 sma11?
Original commit message from CVS:
(_wrap_gst_message_tp_repr): Is your message repr t00 sma11?
2005-10-18 10:17:06 +00:00
Andy Wingo
9cd2add463 gst/gstmessage.override (_wrap_gst_message_tp_repr): Add a repr for messages.
Original commit message from CVS:
2005-10-18  Andy Wingo  <wingo@pobox.com>

* gst/gstmessage.override (_wrap_gst_message_tp_repr): Add a repr
for messages.
2005-10-18 10:02:41 +00:00
Edward Hervey
7aac0c417e gst/gst.defs: Updated to new API
Original commit message from CVS:
* gst/gst.defs:
Updated to new API
2005-10-14 17:27:45 +00:00
Edward Hervey
4bac0b3066 gst/gst-types.defs: Added GstDate boxed type
Original commit message from CVS:
* gst/gst-types.defs:
Added GstDate boxed type
* gst/gst.override:
Added setters and getters for GstDate's day/month/year
Added tp_repr for GstDate
2005-10-14 17:13:08 +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
9f4d0c6bb3 gst/Makefile.am: Added pygstexception.h
Original commit message from CVS:
* gst/Makefile.am: (noinst_HEADERS):
Added pygstexception.h
2005-10-13 16:05:13 +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
Thomas Vander Stichele
c72f87b682 update a test fix an uninited var
Original commit message from CVS:
update a test
fix an uninited var
2005-10-13 15:36:04 +00:00
Edward Hervey
e3ac835751 gst/: Use PyList_SetItem() instead of PyList_Append() for faster list creation and proper python refcounting.
Original commit message from CVS:
Reviewed by Edward Hervey  <edward@fluendo.com>
* gst/gst.override:
* gst/gstevent.override:
* gst/gstpad.override:
* gst/gstquery.override:
Use PyList_SetItem() instead of PyList_Append() for faster list creation
and proper python refcounting.
Closes bug #318684
2005-10-13 10:58:16 +00:00
Edward Hervey
a31f5476e8 gst/gstobject.override: Py_VISIT() might make code cleaner... but it doesn't work with python < 2.4
Original commit message from CVS:
Reviewed by Edward Hervey  <edward@fluendo.com>
* gst/gstobject.override: (_wrap_gst_object_tp_traverse):
Py_VISIT() might make code cleaner... but it doesn't work with
python < 2.4
Closes bug #318692
2005-10-13 10:51:19 +00:00
Edward Hervey
f50c30441c examples/gstfile.py: misc fixes
Original commit message from CVS:
* examples/gstfile.py:
misc fixes
* gst/Makefile.am:
* gst/pygstexception.c:
* gst/pygstexception.h:
* gst/gstelementfactory.override:
* gst/gst.override:
* gst/gstpad.override:
* gst/gstmodule.c: (init_gst):
Added exceptions system by Alessandro Decina <alessandro@nnva.org>
Closes bug #315433
* gst/gstbus.override:
* gst/gstelement.override:
Fix for _wrap_gst_element_get_state()
* gst/gstobject.override:
More debug
2005-10-13 10:41:06 +00:00
Andy Wingo
3e85dcc15e autogen.sh (CONFIGURE_DEF_OPT): Check for automake 1.9 and 1.8, but not for 1.5.
Original commit message from CVS:
2005-10-12  Andy Wingo  <wingo@pobox.com>

* autogen.sh (CONFIGURE_DEF_OPT): Check for automake 1.9 and 1.8,
but not for 1.5.
2005-10-12 17:20:17 +00:00
Andy Wingo
584088b78c gst/gst-extrafuncs.defs (flags, set_flag, unset_flag): Fix for core updates.
Original commit message from CVS:
2005-10-12  Andy Wingo  <wingo@pobox.com>

* gst/gst-extrafuncs.defs (flags, set_flag, unset_flag): Fix for
core updates.

* gst/gstmodule.c (init_gst): Give a better error message.

(also fix the changelog)
2005-10-12 16:05:15 +00:00
Andy Wingo
46e1018e41 gst/gst.defs (gst_registry_scan_paths) (gst_element_abort_preroll, gst_plugin_check_file)
Original commit message from CVS:
2005-10-12  Andy Wingo  <wingo@pobox.com>

* gst/gst.defs (gst_registry_scan_paths)
(gst_element_abort_preroll, gst_plugin_check_file)
(gst_element_finish_preroll): Removed undefined symbols.

* gst/gstelement.override (_wrap_gst_element_get_state): Fix for
GstClockTime api change.
2005-10-12 14:31:53 +00:00
Julien Moutte
2cfbf3f112 Reordering header inclusion order to fix build on my machine.
Original commit message from CVS:
2005-10-12  Julien MOUTTE  <julien@moutte.net>

* gst/gst-argtypes.c:
* gst/pygstminiobject.c:
* testsuite/testhelpermodule.c: Reordering header inclusion
order to
fix build on my machine.
2005-10-12 11:21:53 +00:00
Thomas Vander Stichele
9357eeb14a update for new api
Original commit message from CVS:
update for new api
2005-10-12 01:53:56 +00:00
Edward Hervey
56f25a4653 gst/common.h: cleanup
Original commit message from CVS:
* gst/common.h:
cleanup
* gst/gst-types.defs:
* gst/gst.defs:
Updated defs file to current gstreamer core
* gst/gst.override:
Added useless function (at least from python bindings) and little correction
on _wrap_gst_xml_get_topelements()
* gst/gstbin.override:
* gst/gstbuffer.override:
Fix memleak in gst.Buffer.set_caps()
* gst/gstevent.override:
Added wrapper for remaining gst_event_parse_*()
* gst/gstlibs.override:
Wrapped more gst.Controller methods
* gst/gstmodule.c: (init_gst):
new gst_init()
Added atexit(gst_deinit)
* gst/gstpad.override:
Fix memleak in gst.Pad.set_caps()
* gst/gstquery.override:
add gst.Query.parse_segment()
* gst/libs.defs:
Updated to current gst-libs
* gst/pygstminiobject.c: (pygstminiobject_register_wrapper),
(pygstminiobject_new), (pygstminiobject_dealloc):
Added debug
* testsuite/Makefile.am:
* testsuite/common.py:
* testsuite/gstpython.supp:
* testsuite/python.supp:
* testsuite/test_bin.py:
* testsuite/test_buffer.py:
* testsuite/test_element.py:
* testsuite/test_event.py:
* testsuite/test_ghostpad.py:
* testsuite/test_iterator.py:
* testsuite/test_message.py:
* testsuite/test_pipeline.py:
Proper valgrind testing,
Updated tests to new API
2005-10-11 12:42:53 +00:00
Thomas Vander Stichele
70d68cdd05 examples/play.py: update to current API and state of seek example
Original commit message from CVS:

* examples/play.py:
update to current API and state of seek example
2005-10-09 17:53:58 +00:00
Thomas Vander Stichele
c37b502949 now we can send events to elements again
Original commit message from CVS:
* gst/gstelement.override:
* testsuite/test_event.py:
now we can send events to elements again
2005-10-09 16:02:42 +00:00
Thomas Vander Stichele
c3f136f836 gst/: fix for pending state being added to state message
Original commit message from CVS:

* gst/gst.defs:
* gst/gstmessage.override:
fix for pending state being added to state message
* testsuite/test_buffer.py:
* testsuite/test_pipeline.py:
update
2005-10-09 13:55:59 +00:00
Andy Wingo
e1137284ce gst/gstelement.override (_wrap_gst_element_get_state): Drop the python lock while in get_state.
Original commit message from CVS:
2005-10-07  Andy Wingo  <wingo@pobox.com>

* gst/gstelement.override (_wrap_gst_element_get_state): Drop the
python lock while in get_state.

* gst/__init__.py: Check the right module (i.e., the same check as
pygtk does).
2005-10-07 16:48:26 +00:00
Edward Hervey
fd5f5ad8d0 gst/pygstiterator.c: Unref the return value, since the iterator refs them.
Original commit message from CVS:
* gst/pygstiterator.c:
Unref the return value, since the iterator refs them.
* testsuite/test_iterator.py:
Added more test cases, re-enabled gcverify now the bug is fixed
* gst/pygstminiobject.c: (pygstminiobject_register_wrapper),
(pygstminiobject_new), (pygstminiobject_dealloc):
Comments to better track the creation/destruction of PyGstMiniObject
Fixed naming (gst.GstMiniObject => gst.MiniObject)
* testsuite/python.supp:
Updated python specific valgrind suppressions to latest version and
added x86_64 cases
* testsuite/gstpython.supp:
Series of suppressions for errors/leaks not solvable within gst-python
* testsuite/Makefile.am:
Added gstpython.supp
2005-10-07 16:21:22 +00:00
Edward Hervey
6858dbb214 gst/pygstminiobject.c: Comments to better track the creation/destruction of PyGstMiniObject
Original commit message from CVS:
* gst/pygstminiobject.c: (pygstminiobject_register_wrapper),
(pygstminiobject_new), (pygstminiobject_dealloc):
Comments to better track the creation/destruction of PyGstMiniObject
Fixed naming (gst.GstMiniObject => gst.MiniObject)
* testsuite/python.supp:
Updated python specific valgrind suppressions to latest version and
added x86_64 cases
* testsuite/gstpython.supp:
Series of suppressions for errors/leaks not solvable within gst-python
* testsuite/Makefile.am:
Added gstpython.supp
2005-10-07 13:48:20 +00:00
Thomas Vander Stichele
c363ad6052 add valgrind checking to the testsuite
Original commit message from CVS:

* configure.ac:
* testsuite/Makefile.am:
* testsuite/python.supp:
add valgrind checking to the testsuite
2005-10-07 07:19:17 +00:00
Johan Dahlin
8ff948737b gst/: Even more bored tonight: Implement next/resync/push.
Original commit message from CVS:
* gst/common.h:
* gst/gstmodule.c: (init_gst):
* gst/pygstiterator.c: (pygst_iterator_iter_next),
(pygst_iterator_next), (pygst_iterator_push),
(pygst_iterator_resync):
Even more bored tonight: Implement next/resync/push.
Register type so we can call methods and so.
2005-10-07 01:52:28 +00:00
Johan Dahlin
7534ba0486 Add GstIterator wrapping and tests.
Original commit message from CVS:
* codegen/argtypes.py:
* gst/Makefile.am:
* gst/common.h:
* gst/gst.defs:
* gst/gstbin.override:
* gst/gstelement.override:
* gst/pygstiterator.c: (pygst_iterator_dealloc),
(pygst_iterator_iter_next), (pygst_iterator_new):
* testsuite/test_iterator.py:
Add GstIterator wrapping and tests.
2005-10-07 01:21:57 +00:00
Edward Hervey
396316a7e4 memleak fixes. Thanks valgrind :)
Original commit message from CVS:
* gst/gstpad.override:
* gst/gststructure.override:
* testsuite/testhelpermodule.c: (_wrap_emit_event):
memleak fixes. Thanks valgrind :)
2005-10-06 16:58:38 +00:00
Edward Hervey
e8319d9581 gst-python.spec.in: Wow, that file hasn't been updated in a long long time.
Original commit message from CVS:
* gst-python.spec.in:
Wow, that file hasn't been updated in a long long time.
* gst/gstcaps.override: (_wrap_gst_caps_new_empty):
new caps should be freed on dealloc...
2005-10-06 15:25:29 +00:00
Edward Hervey
09a1645275 gst-python.spec.in: Update dependency for pygtk>= 2.6.3 here too
Original commit message from CVS:
* gst-python.spec.in: (BuildRequires), (Requires):
Update dependency for pygtk>= 2.6.3 here too
* gst/gstcaps.override: (_wrap_gst_caps_new_empty):
new caps should be freed on dealloc...
2005-10-06 15:09:42 +00:00
Edward Hervey
d6abb5817e gst/gstcaps.override: new caps should be freed on dealloc...
Original commit message from CVS:
* gst/gstcaps.override: (_wrap_gst_caps_new_empty):
new caps should be freed on dealloc...
2005-10-06 15:03:40 +00:00
Thomas Vander Stichele
c60fcf3ee5 gst/gstcaps.override: some more debugging
Original commit message from CVS:

* gst/gstcaps.override:
some more debugging
* gst/gstevent.override:
represent using the string for the type
2005-10-06 14:43:15 +00:00
Edward Hervey
2a96c988c0 gst/gstbuffer.override: Proper wrapping of the GstBuffer.caps attribute
Original commit message from CVS:
* gst/gstbuffer.override: (_wrap_gst_buffer__get_caps):
Proper wrapping of the GstBuffer.caps attribute
* gst/gstmodule.c: (init_gst):
* gst/pygstminiobject.c: (pygstminiobject_register_class):
gst-debug initialisation should happen before anything else if we
want the debugging functions to work.
2005-10-06 13:51:31 +00:00
Thomas Vander Stichele
ca1cb51d1a configure.ac: need at least 2.6.3, because that contains the code that converts signal closure arguments to the corre...
Original commit message from CVS:

* configure.ac:
need at least 2.6.3, because that contains the code that
converts signal closure arguments to the correct Gst
types
* gst/gstpad.override:
log name of probe handlers we call
* testsuite/test_pad.py:
fix up tests; use TestCase base class methods
2005-10-06 10:54:14 +00:00
Edward Hervey
f4d65bd143 gst/pygstminiobject.c: Dooh, PyGstMiniObject doesn't need cyclic garbage collection !
Original commit message from CVS:
* gst/pygstminiobject.c:
Dooh, PyGstMiniObject doesn't need cyclic garbage collection !
Bye, bye Python refcounting (and refcounting bugs).
2005-10-06 10:51:55 +00:00
Thomas Vander Stichele
13301b0a39 testsuite/test_ghostpad.py: add handoff to count received buffers
Original commit message from CVS:
2005-10-06  Thomas Vander Stichele  <thomas at apestaart dot org>

* testsuite/test_ghostpad.py:
add handoff to count received buffers
2005-10-06 07:17:16 +00:00
Thomas Vander Stichele
3441391866 gst/gst.override: accurate line numbers for logging
Original commit message from CVS:

* gst/gst.override:
accurate line numbers for logging
* testsuite/common.py:
log when TestCase.setUp() and .tearDown() get called
* testsuite/test_ghostpad.py:
rework
2005-10-05 22:33:50 +00:00
Thomas Vander Stichele
1a0a3888ff testsuite/: add new testsuite for ghost pad behaviour
Original commit message from CVS:

* testsuite/Makefile.am:
* testsuite/test_ghostpad.py:
add new testsuite for ghost pad behaviour
2005-10-05 21:51:36 +00:00
Thomas Vander Stichele
e6830e1e57 gst/gst.defs: gst.Bin constructor can take no arguments
Original commit message from CVS:

* gst/gst.defs:
gst.Bin constructor can take no arguments
* testsuite/test_bin.py:
add constructor tests
* testsuite/test_element.py:
add same link test with no pads
2005-10-05 21:50:43 +00:00
Thomas Vander Stichele
2dc54c0954 add gst.Caps.__refcount__
Original commit message from CVS:

* gst/gst-types.defs:
* gst/gstcaps.override:
* testsuite/test_caps.py:
add gst.Caps.__refcount__
2005-10-05 17:18:32 +00:00
Thomas Vander Stichele
ead5c45836 testsuite/test_pad.py: add a test that shows we can link a pad in a buffer probe callback. yay !
Original commit message from CVS:
* testsuite/test_pad.py:
add a test that shows we can link a pad in a buffer probe
callback.  yay !
2005-10-05 16:22:26 +00:00
Thomas Vander Stichele
deb316e3fd gst/gstobject.override: don't try and unref objects that are already finalizing
Original commit message from CVS:

* gst/gstobject.override:
don't try and unref objects that are already finalizing
* gst/gstpad.override:
fix up the set_chainfunc method
* testsuite/common.py:
* testsuite/test_pad.py:
add linked/unlinked tests with no/true/false bufferprobes
2005-10-05 16:19:13 +00:00
Thomas Vander Stichele
2d361383fc codegen/argtypes.py: act on the mini object properly, not on the py object
Original commit message from CVS:

* codegen/argtypes.py:
act on the mini object properly, not on the py object
2005-10-05 14:51:43 +00:00
Thomas Vander Stichele
02193a3552 gst/gstbuffer.override: a buffer is not a boxed
Original commit message from CVS:

* gst/gstbuffer.override:
a buffer is not a boxed
* gst/gstobject.override:
use Py_VISIT for cleaner and more pythonic code
do not visit GstObjects that still have a parent
2005-10-05 14:26:24 +00:00
Edward Hervey
16bb9b838e Added 'keeprefcount' argument for function/method parameters in order to cope with functions/methods that decrement t...
Original commit message from CVS:
* codegen/argtypes.py:
* codegen/codegen.py:
* codegen/definitions.py:
* gst/arg-types.py:
Added 'keeprefcount' argument for function/method parameters in order to
cope with functions/methods that decrement the refcount of the given
parameter
* gst/gst.defs:
Added 'keeprefcount' for buffer argument of gst_pad_push() wrapper.
2005-10-05 13:48:21 +00:00
Thomas Vander Stichele
acdb03ae74 gst/__init__.py: only pygtk.require if pygtk wasn't imported yet
Original commit message from CVS:

* gst/__init__.py:
only pygtk.require if pygtk wasn't imported yet
2005-10-05 09:02:19 +00:00
Thomas Vander Stichele
2c73056985 gst/__init__.py: don't import gobject revert ltihooks change from Johan - if it throws an exception there is a bug an...
Original commit message from CVS:
* gst/__init__.py:
don't import gobject
revert ltihooks change from Johan - if it throws an exception
there is a bug and I want to fix it
2005-10-05 08:58:00 +00:00
Thomas Vander Stichele
74782ee345 move over some of the extend stuff that I want to use right now
Original commit message from CVS:

* configure.ac:
* gst/Makefile.am:
* gst/extend/Makefile.am:
* gst/extend/__init__.py:
* gst/extend/pygobject.py:
* gst/extend/utils.py:
move over some of the extend stuff that I want to use right now
2005-10-04 14:59:07 +00:00
Edward Hervey
3241bda36a codegen/codegen.py: Added pyg_[begin|end]_allow_threads before and after call of C methods in python methods wrappers.
Original commit message from CVS:
* codegen/codegen.py:
Added pyg_[begin|end]_allow_threads before and after call of C methods
in python methods wrappers.
This should get rid of more threading issues...
Should we also do that for function calls ?
2005-10-04 14:31:47 +00:00
Thomas Vander Stichele
c032ce22d4 fix version numbers
Original commit message from CVS:
fix version numbers
2005-10-04 08:17:25 +00:00
Thomas Vander Stichele
a903161f22 back to head
Original commit message from CVS:
back to head
2005-10-03 18:01:50 +00:00
Thomas Vander Stichele
a7a73930ff release time
Original commit message from CVS:
release time
2005-10-03 17:52:07 +00:00
Johan Dahlin
089fdbaf22 gst/gst.defs: Remove gst_element_*_preroll functions, they are not present in gstreamer any longer.
Original commit message from CVS:
* gst/gst.defs: Remove gst_element_*_preroll functions, they are
not present in gstreamer any longer.
2005-10-02 16:24:44 +00:00
Edward Hervey
3459b34ef0 gst/gstpad.override: Removed overriding of gst_caps_get_negotiated_caps, the codegenerator handles it much better (hi...
Original commit message from CVS:
* gst/gstpad.override:
Removed overriding of gst_caps_get_negotiated_caps, the codegenerator
handles it much better (hint:don't copy)
2005-09-30 15:53:07 +00:00
Thomas Vander Stichele
58c3c18b93 gst/: deprecate add_many/remove_many, fold into add/remove
Original commit message from CVS:

* gst/gst.defs:
* gst/gst.override:
* gst/gstbin.override:
deprecate add_many/remove_many, fold into add/remove
* gst/gstmodule.c: (init_gst):
add AddError and RemoveError
* testsuite/Makefile.am:
remove fatal warnings, until we can wrap log handlers
and catch our expected add/remove errors
* testsuite/test_bin.py:
add tests for new add/remove semantics
* testsuite/test_pad.py:
* testsuite/test_pipeline.py:
fix up
2005-09-30 15:23:15 +00:00
Johan Dahlin
a630c4673a gst/gstelement.override (_wrap_gst_element_get_state): return an enum instead of an int.
Original commit message from CVS:
* gst/gstelement.override (_wrap_gst_element_get_state): return an
enum instead of an int.
2005-09-30 00:56:17 +00:00
Andy Wingo
b27e9ba001 examples/: Updates for bus API.
Original commit message from CVS:
2005-09-29  Andy Wingo  <wingo@pobox.com>

* examples/pipeline-tester (Window.play):
* examples/vumeter.py (Window.run): Updates for bus API.
2005-09-29 16:38:06 +00:00
Edward Hervey
ced71dad74 gst/gst.defs: Definitions update
Original commit message from CVS:
* gst/gst.defs:
Definitions update
2005-09-29 16:16:28 +00:00
Edward Hervey
fbd17dd797 gst/: Proper wrapping of GstController
Original commit message from CVS:
* gst/gst.override:
* gst/gstlibs.override:
Proper wrapping of GstController
* examples/Makefile.am:
* examples/audio-controller.py:
Example to show how to use gst.Controller
2005-09-29 15:42:31 +00:00
Edward Hervey
6e384e2e97 examples/gstfile.py: Update gstfile example so that... it works :)
Original commit message from CVS:
* examples/gstfile.py:
Update gstfile example so that... it works :)
2005-09-29 14:06:26 +00:00
Edward Hervey
fc520c8a72 Updated definitions, wrapper and testsuite for changes in GstBus API
Original commit message from CVS:
* gst/gst.defs:
* gst/gstbus.override:
* testsuite/test_bus.py:
* testsuite/test_pipeline.py:
Updated definitions, wrapper and testsuite for changes in GstBus API
2005-09-29 13:56:03 +00:00
Edward Hervey
1ead698175 gst/gst.defs: Updated definitions
Original commit message from CVS:
* gst/gst.defs:
Updated definitions
* gst/gst.override:
ignoring _init, gst_param_spec* and gst_iterator_new_list functions
* gst/gststructure.override:
ignore gst_structure_get_enum
* testsuite/test_struct.py:
Updated test for boolean
2005-09-29 09:58:25 +00:00
Johan Dahlin
e07e65d842 gst/gstelement.override (_wrap_gst_element_get_state): Set the timeout to 0 as default
Original commit message from CVS:
* gst/gstelement.override (_wrap_gst_element_get_state): Set the
timeout to 0 as default
2005-09-29 02:38:07 +00:00
Edward Hervey
ff6728de7b gst/: Updated definitions
Original commit message from CVS:
* gst/gst.defs:
* gst/libs.defs:
Updated definitions
* gst/gst.override:
* gst/gststructure.override:
Added functions not to be used from python, or that have better
existing equivalents, to the ignore list.
2005-09-28 17:08:11 +00:00
Thomas Vander Stichele
de81816a93 testsuite/common.py: provide a default setUp/tearDown
Original commit message from CVS:

* testsuite/common.py:
provide a default setUp/tearDown
* testsuite/test_bin.py:
* testsuite/test_bus.py:
* testsuite/test_element.py:
* testsuite/test_pipeline.py:
adding/updating tests and gc tracking
2005-09-28 15:48:10 +00:00
Edward Hervey
9ba2f7fbbe gst/: Remove dead code
Original commit message from CVS:
* gst/gst.override:
* gst/gstbin.override:
* gst/gstbuffer.override:
* gst/gstevent.override:
Remove dead code
* gst/gstelement.override:
Remove dead code and re-enable link with filtering and _send_event()
2005-09-28 15:19:44 +00:00
Edward Hervey
60961d9b93 gst/: Let's split up gst.override,
Original commit message from CVS:
* gst/Makefile.am:
* gst/gst.override:
* gst/gsttaglist.override:
* gst/gstobject.override:
Let's split up gst.override,
Added gsttaglist.override and gstobject.override
* gst/arg-types.py:
* gst/gst-argtypes.c:
Cleanup, removed deprecated GstData related functions
* gst/gst-extrafuncs.defs:
* gst/gst.defs:
Moved debug functions to gst-extrafuncs.defs
2005-09-28 14:34:52 +00:00
Thomas Vander Stichele
d1d42bd770 gst/gst.defs: parse_launch also owns the return ref
Original commit message from CVS:

* gst/gst.defs:
parse_launch also owns the return ref
* gst/gstbin.override:
fix a leak in get_by_name()
* testsuite/common.py:
loop when garbage collecting; necessary when deleting, say,
a pipeline, that contains elements, to ensure the elements
also get collected
* testsuite/test_element.py:
* testsuite/test_pipeline.py:
test for garbage collection
2005-09-28 14:20:03 +00:00
Thomas Vander Stichele
cb4e57360e testsuite/common.py: add a common.TestCase class that has methods to track and verify garbage collection of GstObject
Original commit message from CVS:

* testsuite/common.py:
add a common.TestCase class that has methods to track and verify
garbage collection of GstObject
* testsuite/test_pad.py:
use it
2005-09-28 13:29:52 +00:00
Thomas Vander Stichele
5768672390 gst/: add/move some code to handle wrapping/refcounting of possible
Original commit message from CVS:
* gst/Makefile.am:
* gst/common.h:
* gst/pygstobject.c: (pygstobject_sink), (pygstobject_new),
(pygst_object_unref):
* gst/pygstobject.h:
* gst/gstmodule.c: (init_gst):
add/move some code to handle wrapping/refcounting of possible
GstObject
* codegen/argtypes.py:
* gst/gstbin.override:
* gst/gstbus.override:
* gst/gstelement.override:
* gst/gstpad.override:
* gst/interfaces.override:
use this reffing code
* gst/gst-types.defs:
* gst/gst.override:
add a __gstrefcount__ field to GstObject types
add tp_traverse, tp_dealloc and tp_clear, so we handle refcounting
properly related to garbage collection
* testsuite/test_element.py:
* testsuite/test_pad.py:
add more tests, add some refcount checks
2005-09-28 12:17:29 +00:00
Edward Hervey
1bc63d73b9 codegen/argtypes.py: Proper handling of 'caller-owns-return' for miniobjects
Original commit message from CVS:
* codegen/argtypes.py:
Proper handling of 'caller-owns-return' for miniobjects
* gst/gst-types.defs:
Updating parenting of classes,
added/removed/updated flags&enums
* gst/gst.defs:
Updated to current core cvs,
Added 'caller-owns-return' properties for functions/methods that require
it
* gst/gst.override:
Don't make *_[un]ref() accessible
* gst/gstbuffer.override:
* gst/gstevent.override:
* gst/gstmessage.override:
* gst/gstquery.override:
Removed hack-ish wrappers since codegenerator handles
'caller-owns-return' methods/functions
* gst/gstmodule.c: (sink_gstobject), (init_gst):
Re-enabled sink function
* gst/libs.defs:
Updated to current core cvs
Removed Adapter
* gst/pygstminiobject.c:
* gst/pygstminiobject.h:
removed _new_noref() hack
2005-09-28 10:58:50 +00:00
Thomas Vander Stichele
ee6e612754 gst/gstpad.override: don't leak the parent when repr'ing pads
Original commit message from CVS:

* gst/gstpad.override:
don't leak the parent when repr'ing pads
2005-09-28 09:52:37 +00:00
Thomas Vander Stichele
0ef50e2d9a gst/__init__.py: require pygtk 2.0 when importing gst it only works with 2.0, and it sets up the path correctly when ...
Original commit message from CVS:

* gst/__init__.py:
require pygtk 2.0 when importing gst
it only works with 2.0, and it sets up the path correctly
when running against a pygtk compiled into a different prefix
2005-09-28 07:40:15 +00:00
Thomas Vander Stichele
f688b2ee8f update for API changes
Original commit message from CVS:
update for API changes
2005-09-26 16:53:04 +00:00
Thomas Vander Stichele
ea0f5ff24b examples/fvumeter.py: condense code by using table and loop
Original commit message from CVS:
2005-09-23  Thomas Vander Stichele  <thomas at apestaart dot org>

* examples/fvumeter.py:
condense code by using table and loop
* examples/vumeter.py:
fix up example for new API for both bus and level element
2005-09-23 21:10:36 +00:00
Thomas Vander Stichele
cfdc81b592 gst/gst.*: add another registry method
Original commit message from CVS:

* gst/gst.defs:
* gst/gst.override:
add another registry method
* testsuite/Makefile.am:
add check-verbose
* testsuite/runtests.py:
check for VERBOSE env var
* testsuite/test_pad.py:
refactor a test and add one more for probes
2005-09-23 15:37:40 +00:00
Jan Schmidt
1f45a20a81 gst/gstbuffer.override: Revert Buffer.caps change, since wingo fixed it upstream
Original commit message from CVS:
* gst/gstbuffer.override:
Revert Buffer.caps change, since wingo fixed it upstream
2005-09-22 10:13:57 +00:00
Jan Schmidt
ab0dbff2a0 gst/gstbuffer.override: Increment the refcount when fetching GST_BUFFER_CAPS.
Original commit message from CVS:
* gst/gstbuffer.override:
Increment the refcount when fetching GST_BUFFER_CAPS.
Python gurus, please fix if there's a better way this should be done.
2005-09-22 04:16:26 +00:00
Andy Wingo
23af58d1e3 testsuite/test_pad.py (PadProbeTest.testRemovingProbe): Add probe removal test. Passes, but some other test sporadica...
Original commit message from CVS:
2005-09-21  Andy Wingo  <wingo@pobox.com>

* testsuite/test_pad.py (PadProbeTest.testRemovingProbe): Add
probe removal test. Passes, but some other test sporadically fails
-- will check that later.
2005-09-21 13:45:58 +00:00
Andy Wingo
14856cf85c gst/gst.defs: Update for probe removal api gst/gstpad.override (_wrap_gst_pad_remove_data_probe) (_wrap_gst_pad_remov...
Original commit message from CVS:
2005-09-21  Andy Wingo  <wingo@pobox.com>

* gst/gst.defs: Update for probe removal api

* gst/gstpad.override (_wrap_gst_pad_remove_data_probe)
(_wrap_gst_pad_remove_event_probe)
(_wrap_gst_pad_remove_buffer_probe): Removed, upstream does the
right thing now.
(_wrap_gst_pad_add_data_probe, _wrap_gst_pad_add_event_probe)
(_wrap_gst_pad_add_buffer_probe): Indent.
2005-09-21 13:36:45 +00:00
Thomas Vander Stichele
4a13efde8d add a .keys() method to gst.Structure, plus test
Original commit message from CVS:
* gst/gst.defs:
* gst/gststructure.override:
* testsuite/test_struct.py:
add a .keys() method to gst.Structure, plus test
2005-09-20 14:50:54 +00:00
Thomas Vander Stichele
d5866645cc fix up for new bus API
Original commit message from CVS:
fix up for new bus API
2005-09-19 15:44:54 +00:00
Thomas Vander Stichele
419ce01981 update for new plugin API
Original commit message from CVS:
update for new plugin API
2005-09-18 11:54:34 +00:00
Thomas Vander Stichele
c8f8cd37b9 commit intermediate wrapper updates
Original commit message from CVS:
commit intermediate wrapper updates
2005-09-18 11:06:42 +00:00
Andy Wingo
ed59668d25 gst/gst.defs (registry_get_default): Renamed from gst_registry_get_default.
Original commit message from CVS:
2005-09-16  Andy Wingo  <wingo@pobox.com>

* gst/gst.defs (registry_get_default): Renamed from
gst_registry_get_default.
2005-09-16 12:33:07 +00:00
Thomas Vander Stichele
919bdff821 remove function
Original commit message from CVS:
remove function
2005-09-16 11:25:45 +00:00
Andy Wingo
fc71ff617e gst/: Update for registry/plugin/pluginfeature API changes.
Original commit message from CVS:
2005-09-15  Andy Wingo  <wingo@pobox.com>

* gst/gst-types.defs:
* gst/gst.defs: Update for registry/plugin/pluginfeature API changes.
2005-09-15 11:58:13 +00:00
Thomas Vander Stichele
de0ee6f4fd fix wrong decrefs
Original commit message from CVS:
fix wrong decrefs
2005-09-13 09:48:32 +00:00
Thomas Vander Stichele
9aa8bb0b72 wrap state_change_async and show that it works
Original commit message from CVS:
wrap state_change_async and show that it works
2005-09-12 18:19:08 +00:00
Thomas Vander Stichele
a74cc80a77 examples/vumeter.py: update for property name change
Original commit message from CVS:
* examples/vumeter.py:
update for property name change
* gst/gst.override:
* testsuite/test_element.py:
actually log on objects, yay
2005-09-12 17:06:09 +00:00
Andy Wingo
58dbe77515 testsuite/test_element.py (ElementName.testElementStateGetName): s/NONE/VOID/.
Original commit message from CVS:
2005-09-12  Andy Wingo  <wingo@pobox.com>

* testsuite/test_element.py (ElementName.testElementStateGetName):
s/NONE/VOID/.
2005-09-12 16:20:24 +00:00
Thomas Vander Stichele
ed6f0f377a fix for header changes
Original commit message from CVS:
fix for header changes
2005-09-09 16:39:59 +00:00
Thomas Vander Stichele
67cf07ff6a fix other tests as well
Original commit message from CVS:
fix other tests as well
2005-09-08 15:17:13 +00:00
Thomas Vander Stichele
83f80e9942 wrap gst.Element.get_state, returning a tuple add tests for it
Original commit message from CVS:
wrap gst.Element.get_state, returning a tuple
add tests for it
2005-09-08 15:13:06 +00:00
Thomas Vander Stichele
4132069a83 add debug methods to gst.Object
Original commit message from CVS:
add debug methods to gst.Object
2005-09-08 14:08:32 +00:00
Thomas Vander Stichele
4babdda09c gst/gst.defs: add gst.ghost_pad_new_notarget
Original commit message from CVS:

* gst/gst.defs:
add gst.ghost_pad_new_notarget
* gst/gstpad.override:
change wrap_gst_pad_new a little and add logging
* testsuite/test_pad.py:
add tests for constructors of gst.Pad
2005-09-08 13:34:29 +00:00
Andy Wingo
9e2af8b0b4 examples/pipeline-tester: Update pipelines. The fixed-rate v4l one doesn't work here, but the rest of them do.
Original commit message from CVS:
2005-09-05  Andy Wingo  <wingo@pobox.com>

* examples/pipeline-tester: Update pipelines. The fixed-rate v4l
one doesn't work here, but the rest of them do.
2005-09-05 16:31:50 +00:00
Edward Hervey
934c77178d examples/pipeline-tester: New API: STATE_SUCCESS -> STATE_CHANGE_SUCCESS
Original commit message from CVS:
* examples/pipeline-tester: (Window.play):
New API: STATE_SUCCESS -> STATE_CHANGE_SUCCESS
2005-09-05 14:20:06 +00:00
Thomas Vander Stichele
9ddd53563d wrap gst.Plugin.get_source
Original commit message from CVS:
wrap gst.Plugin.get_source
2005-09-03 17:06:52 +00:00
Thomas Vander Stichele
61038c89f1 don't mangle plugin.get_version() to a tuple of int; it segfaults when the version contains non-ints like '-'
Original commit message from CVS:
don't mangle plugin.get_version() to a tuple of int; it segfaults
when the version contains non-ints like '-'
2005-09-03 10:01:47 +00:00
Thomas Vander Stichele
e4ea7ba8bf fix state change test
Original commit message from CVS:
fix state change test
2005-09-02 22:59:20 +00:00
Andy Wingo
52d5e11fa7 gst/: Update for core changes.
Original commit message from CVS:
2005-09-02  Andy Wingo  <wingo@pobox.com>

* gst/gstelement.override:
* gst/gstmessage.override:
* gst/gst-types.defs (State, StateChangeReturn, StateChange):
* gst/gst.defs (change_state): Update for core changes.
2005-09-02 16:21:45 +00:00
Thomas Vander Stichele
51a7c6de63 make gst.event_new_* available
Original commit message from CVS:
make gst.event_new_* available
2005-09-01 21:46:11 +00:00
Thomas Vander Stichele
f756328c1a add an example of a bin that overrides the change_state vmethod
Original commit message from CVS:
add an example of a bin that overrides the change_state vmethod
2005-09-01 16:16:11 +00:00
Thomas Vander Stichele
9ee7ac4ee3 55 working tests now; some disabled
Original commit message from CVS:
55 working tests now; some disabled
2005-09-01 15:50:46 +00:00
Thomas Vander Stichele
23b365140e add a .data to buffers; it feels more natural to me than doing str(buffer) compared to the other properties.
Original commit message from CVS:

* gst/gst-types.defs:
* gst/gstbuffer.override:
* gst/pygstminiobject.c: (pygstminiobject_new_noref):
* testsuite/test_buffer.py:
add a .data to buffers; it feels more natural to me than doing
str(buffer) compared to the other properties.
make sub_buffer test for data
2005-09-01 14:50:01 +00:00
Thomas Vander Stichele
dc83edf73e fix a race condition in test_buffer.py
Original commit message from CVS:
fix a race condition in test_buffer.py


* gst/gst.override:
* gst/gstmodule.c: (init_gst):
add a pygst debug category for bindings themselves to use
* gst/gstbuffer.override:
add a repr method; add some assertions
* gst/pygstminiobject.c: (pygst_miniobject_init),
(pygstminiobject_register_wrapper), (pygstminiobject_new),
(pygstminiobject_new_noref), (pygstminiobject_dealloc),
(pygstminiobject_clear):
make the miniobjs hash private with an underscore
add debugging for inserting/removal in hash
fix pygstminiobject_clear - it also needs to remove
from the global hash.  Fixes a nasty race problem in
test_buffer
* testsuite/test_buffer.py:
expand on the subbuffer test
2005-09-01 14:41:28 +00:00
Andy Wingo
1bbb59401a examples/Makefile.am (examples_DATA): Dist fixer.
Original commit message from CVS:
2005-09-01  Andy Wingo  <wingo@pobox.com>

* examples/Makefile.am (examples_DATA): Dist fixer.

* examples/debugslider.py: Renamed from debug-slider.py so it can
be imported.

* examples/pipeline-tester: Add a debugslider.

* pygst.py.in (require): If pygst.require() is called multiple
times, don't pollute sys.path with unneeded path entries.
2005-09-01 14:39:51 +00:00
Thomas Vander Stichele
b9d59e3e99 gst/__init__.py: del ltihooks properly; fixes loading of testhelper in testsuite
Original commit message from CVS:
* gst/__init__.py:
del ltihooks properly; fixes loading of testhelper in testsuite
* gst/gst.defs:
wrap link_filtered
2005-08-31 15:28:37 +00:00
Andy Wingo
0a961e4d7f gst/interfaces.defs (MixerTrack): MixerTrack is a GObject. How did this ever work before?
Original commit message from CVS:
2005-08-19  Andy Wingo  <wingo@pobox.com>

* gst/interfaces.defs (MixerTrack): MixerTrack is a GObject. How
did this ever work before?
2005-08-19 16:10:37 +00:00
Andy Wingo
08c7b1a588 gst/interfaces.override (_wrap_gst_tuner_list_channels) (_wrap_gst_tuner_list_norms, _wrap_gst_mixer_list_tracks)
Original commit message from CVS:
2005-08-19  Andy Wingo  <wingo@pobox.com>

* gst/interfaces.override (_wrap_gst_tuner_list_channels)
(_wrap_gst_tuner_list_norms, _wrap_gst_mixer_list_tracks)
(_wrap_gst_color_balance_list_channels): Catch programming errors
without segfaults, as glib would do.
2005-08-19 14:46:05 +00:00
Andy Wingo
06c0cf5e18 examples/debug-slider.py: New file.
Original commit message from CVS:
2005-08-18  Andy Wingo  <wingo@pobox.com>

* examples/debug-slider.py: New file.

* examples/Makefile.am (examples_DATA): Dist it, foolios.
2005-08-18 11:36:23 +00:00
Andy Wingo
ef32a35246 gst/gst.defs (watch_for_state_change): Added wrapper from CVS.
Original commit message from CVS:
2005-08-17  Andy Wingo  <wingo@pobox.com>

* gst/gst.defs (watch_for_state_change): Added wrapper from CVS.
2005-08-17 16:41:23 +00:00
Andy Wingo
e3c70bcaeb /tmp/cvs3vKuoV
Original commit message from CVS:
/tmp/cvs3vKuoV
2005-08-16 16:47:45 +00:00
Edward Hervey
1a39bca0ea gst/gst.override: Only display the filename and not the full path
Original commit message from CVS:
* gst/gst.override: (pygst_debug_log):
Only display the filename and not the full path
2005-08-11 13:23:20 +00:00
Edward Hervey
762b581fcb gst/gstmodule.c: changed debug category name from 'gst-python' to 'python'
Original commit message from CVS:
* gst/gstmodule.c: (init_gst):
changed debug category name from 'gst-python' to 'python'
* gst/gst.override: (pygst_debug_log):
gchar is way smaller than an int... resulting in negative line numbers
in debug.
2005-08-10 15:42:03 +00:00
Edward Hervey
54936521fb gst/gst.override: gchar is way smaller than an int... resulting in negative line numbers in debug.
Original commit message from CVS:
* gst/gst.override: (pygst_debug_log):
gchar is way smaller than an int... resulting in negative line numbers
in debug.
2005-08-10 15:24:12 +00:00
Edward Hervey
4164682236 gst/gst.override: printf("urlencoded%20space") != printf("%s", "urlencoded%20space")
Original commit message from CVS:
* gst/gst.override: (pygst_debug_log):
printf("urlencoded%20space") != printf("%s", "urlencoded%20space")
Funny how a lot of problems have gone since that's fixed :)
2005-08-10 15:06:51 +00:00
Edward Hervey
8ad2d61eeb gst/gstpad.override: Long != LongLong ....
Original commit message from CVS:
* gst/gstpad.override: (_wrap_gst_pad_query_position):
Long != LongLong ....
2005-08-09 13:42:56 +00:00
Edward Hervey
38acc2aff7 codegen/: Updates from pygtk's codegen and typo fix
Original commit message from CVS:
* codegen/codegen.py:
* codegen/argtypes.py:
Updates from pygtk's codegen and typo fix
2005-08-08 13:47:14 +00:00
Edward Hervey
139163d89e gst/: We now have debugging in gst-python ;) gst.[log|debug|info|warning|error]()
Original commit message from CVS:
* gst/gst.defs:
* gst/gst.override:
* gst/gstmodule.c:
We now have debugging in gst-python ;)
gst.[log|debug|info|warning|error]()
2005-08-04 10:44:16 +00:00
Edward Hervey
0f04024f5c bindings now wrap the gstreamer extra libs (adapter, controller,...)
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/gstlibs.override:
* gst/gst.defs:
* gst/libs.defs:
* gst/gst.override:
* gst/gstlibs.override:
bindings now wrap the gstreamer extra libs (adapter, controller,...)
2005-08-03 16:54:57 +00:00
Andy Wingo
27ca26ae0b gst/gstmessage.override (_wrap_gst_message_parse_error): Always return a tuple of length 2.
Original commit message from CVS:
2005-08-03  Andy Wingo  <wingo@pobox.com>

* gst/gstmessage.override (_wrap_gst_message_parse_error): Always
return a tuple of length 2.
2005-08-03 12:48:40 +00:00
Andy Wingo
e6c416ca0d examples/pipeline-tester: Commit some updates I had.
Original commit message from CVS:
2005-08-03  Andy Wingo  <wingo@pobox.com>

* examples/pipeline-tester: Commit some updates I had.

* configure.ac (PYGST_CFLAGS): pygst.py generation is handled by
the makefile.
2005-08-03 12:32:13 +00:00
Edward Hervey
32dbfea730 Remove old documentation system
Original commit message from CVS:
* README-docs:
* configure.ac:
* Makefile.am:
Remove old documentation system
* gst/gst.defs:
* gst/gst-types.defs:
Updating defs files
* gst/gst.override:
Wrapped gst_flow_get_name() for const-gchar *
* gst/gstelement.override:
I really should test everything on 32 AND 64 bits systems...
* gst/gstevent.override:
Updated gst_event_new_seek() wrapper
Added gst_event_get_structure() wrapper
* gst/gstmodule.c:
Changed definition of gst.CLOCK_TIME_NONE to wrap GST_CLOCK_TIME_NONE
* testsuite/testhelpermodule.c:
gst_event_new --> gst_event_new_custom
2005-08-01 09:59:55 +00:00
Edward Hervey
7bb0ac55a2 gst/gst-types.defs: Added GhostPad type
Original commit message from CVS:
* gst/gst-types.defs: (GhostPad):
Added GhostPad type
* gst/interfaces.defs:
Added MixerTrackFlags, TunerChannelFlags and MixerOptions
Want the rest of the poem ? ;)
2005-07-25 11:29:47 +00:00
Edward Hervey
b32dc34bfc It seems that, somewhere along the way, I forgot to make sure interfaces were binded too :)
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/interfaces.defs:
* gst/interfaces.override:
* gst/xoverlay.override:
It seems that, somewhere along the way, I forgot to make sure interfaces
were binded too :)
2005-07-23 14:54:02 +00:00
Edward Hervey
9fd8f61cb1 gst/gstmessage.override: wrapped gst_message_parse_segment_start() and gst_message_parse_segment_done()
Original commit message from CVS:
* gst/gstmessage.override:
wrapped gst_message_parse_segment_start() and
gst_message_parse_segment_done()
* gst/gst.defs:
I'm bored with writing "Updating defs file", so I'll just write a poem
by Charles Baudelaire, "L'invitation au voyage" :
Mon enfant, ma soeur,
Songe à la douceur
D'aller là-bas vivre ensemble !
Aimer à loisir,
Aimer et mourir
Au pays qui te ressemble !
Les soleils mouillés
De ces ciels brouillés
Pour mon esprit ont les charmes
Si mystérieux
De tes traîtres yeux,
Brillant à travers leurs larmes.
The rest at the next defs update :)
2005-07-21 12:03:23 +00:00
Edward Hervey
a7a9df2c86 gst/gst.defs: I'm bored with writing "Updating defs file", so I'll just write a poem by Charles Baudelaire, "L'invita...
Original commit message from CVS:
* gst/gst.defs:
I'm bored with writing "Updating defs file", so I'll just write a poem
by Charles Baudelaire, "L'invitation au voyage" :
Mon enfant, ma soeur,
Songe à la douceur
D'aller là-bas vivre ensemble !
Aimer à loisir,
Aimer et mourir
Au pays qui te ressemble !
Les soleils mouillés
De ces ciels brouillés
Pour mon esprit ont les charmes
Si mystérieux
De tes traîtres yeux,
Brillant à travers leurs larmes.
The rest at the next defs update :)
2005-07-21 11:14:46 +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