Commit graph

113 commits

Author SHA1 Message Date
Andy Wingo
8f0143c56e gst/arg-types.py (GstCapsArg.beforenull): py_caps can be NULL if it is an optional argument. Translate this python no...
Original commit message from CVS:
2006-04-07  Andy Wingo  <wingo@pobox.com>

* gst/arg-types.py (GstCapsArg.beforenull): py_caps can be NULL if
it is an optional argument. Translate this python non-value to the
C NULL.

* gst/gst.defs (get_compatible_pad): Filter caps is optional and
can be None. It defaults to None.
2006-04-07 17:21:27 +00:00
Andy Wingo
59667a31a7 gst/gst.defs (element_make_from_uri): Element name is optional and can be None. It defaults to None.
Original commit message from CVS:
2006-04-07  Andy Wingo  <wingo@pobox.com>

* gst/gst.defs (element_make_from_uri): Element name is optional
and can be None. It defaults to None.
2006-04-07 14:32:08 +00:00
Andy Wingo
b3fb726a67 configure.ac (PYGST_MICRO_VERSION): Doc fix.
Original commit message from CVS:
2006-04-05  Andy Wingo  <wingo@pobox.com>

* configure.ac (PYGST_MICRO_VERSION): Doc fix.
(PYGST_NANO_VERSION): New define.

* gst/__init__.py (version): Add as an alias for get_gst_version.
Should use the deprecation infrastructure here.

* gst/gst.defs: Add defs for the new wrapped functions.

* gst/gst.override (_wrap_gst_get_pygst_version)
(_wrap_gst_get_gst_version): New overrides, functions to access
the gstreamer and pygst versions. The first used to be called
gst_version(); we ignore gst_version now.
2006-04-05 11:55:48 +00:00
Edward Hervey
3136c7ef6d gst/gst.defs: gst_element_post_message: Adding keep-refcount tag to the message since the function will unref it.
Original commit message from CVS:
* gst/gst.defs:
gst_element_post_message: Adding keep-refcount tag to the message since
the function will unref it.
2006-04-04 16:16:46 +00:00
Edward Hervey
183e0f7210 configure.ac: Fixes in how we figure out what API to ignore
Original commit message from CVS:
* configure.ac:
Fixes in how we figure out what API to ignore
* gst/Makefile.am:
* gst/gst-0.10.5.ignore:
* gst/gstversion.override.in:
Added file for handling API additions for gstreamer 0.10.5
* gst/base.defs:
* gst/gst.defs:
New API
* gst/gstpad.override:
Overrides for gst.Pad.query_peer_*()
2006-03-24 11:07:22 +00:00
Edward Hervey
7c377f9596 gst/: Added new API: gst_pipeline_[get|set]_auto_flush_bus() gst_uri_has_protocol()
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
Added new API:
gst_pipeline_[get|set]_auto_flush_bus()
gst_uri_has_protocol()
GST_RESOURCE_ERROR_NO_SPACE_LEFT
2006-03-10 10:54:40 +00:00
Edward Hervey
c690bf507f gst/: Updated and properly wrapped new GstQuery formats API.
Original commit message from CVS:
* gst/gst.defs:
* gst/gstquery.override:
Updated and properly wrapped new GstQuery formats API.
2006-02-17 15:35:34 +00:00
Andy Wingo
e8df8fe73c gst/gst.defs (disable_sync_message_emission)
Original commit message from CVS:
2006-02-10  Andy Wingo  <wingo@pobox.com>

* gst/gst.defs (disable_sync_message_emission)
(enable_sync_message_emission): Wrap new functions from GStreamer
CVS.

* configure.ac (GST_REQ): Require GStreamer 0.10.3.1.

* examples/play.py: A bit of refactoring. Make use of the
sync-message signals. Reacts to events on the bus. Keeps aspect
ratio. Better scrubbing, play/pause button instead of
play+pause+stop. Not a bad player now, although the code still
lacks cleanliness.
2006-02-10 17:49:47 +00:00
Edward Hervey
b36f73ee11 gst/gst.defs: Update for current GStreamer core API
Original commit message from CVS:
* gst/gst.defs:
Update for current GStreamer core API
2006-02-02 15:54:07 +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
Edward Hervey
938205e1da gst/base.defs: Revert guint8* to gchar* modifications for the adapter
Original commit message from CVS:
* gst/base.defs:
Revert guint8* to gchar* modifications for the adapter
* gst/gst.defs:
Cleanups and API additions
2006-01-09 11:42:25 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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