Commit graph

530 commits

Author SHA1 Message Date
Edward Hervey
4fadf0700e gstbus.override: Allow using set_sync_handler with None as a parameter 2009-02-22 20:13:04 +01:00
Edward Hervey
51ac26b86c GstPad: Use gst_pad_set_blocked_async_full() if available.
Avoids leaking arguments.
Fixes #514717
2009-02-22 20:12:23 +01:00
Edward Hervey
d66033a19c gstpad.override: Take a copy of gst_static_pad_template_get_caps()
This means that we take a completely new caps for the sole usage of
gst-python. The GstCaps return by gst_static_pad_template_get_caps() are
(surprise) static and therefore will always exist... as long as the
GstStaticPadTemplate (and the factory providing it) still exist.

This solves the case of getting the caps of a static pad template *before*
any element was created using the GstElementFactory. When the factory is
used to create an element, a new factory is created, replacing the old one,
and plainly discarding any static values (including those caps).
2009-02-20 18:29:20 +01:00
Edward Hervey
9291aa202f GstMiniObject: Re-increment the C refcount after using a miniobject.
This behaviour is symmetrical to what we do at the very beginning (incrementing
the Python refcount of the wrapper object and decrementing the C refcount of the
actual object).
2009-02-09 13:54:44 +01:00
Edward Hervey
ad201dca69 Ignore new auto-generated .c files 2009-01-30 08:59:07 +01:00
Edward Hervey
3b6ab11761 Raise an Exception when wrapping a NULL GstIterator.
Original commit message from CVS:
* gst/pygstiterator.c: (pygst_iterator_new):
* testsuite/test_iterator.py:
Raise an Exception when wrapping a NULL GstIterator.
Fixes #566903
2009-01-08 12:25:26 +00:00
Vincent GENIEUX
405b07512a gst/gststructure.override: Don't leak key names in _wrap_gst_structure_keys.
Original commit message from CVS:
patch by: Vincent GENIEUX <mutex at runbox dot com>
* gst/gststructure.override:
Don't leak key names in _wrap_gst_structure_keys.
2009-01-05 11:05:32 +00:00
Edward Hervey
0cfca146c5 gst/: Wrap more GstIndexEntry methods and properties.
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
* gst/gst.override:
Wrap more GstIndexEntry methods and properties.
2009-01-02 21:46:30 +00:00
Edward Hervey
4e04dc11c8 Wrap gst-plugins-base's tag helper library.
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/tag.defs:
* gst/tag.override:
* gst/tagmodule.c: (inittag):
Wrap gst-plugins-base's tag helper library.
Partially fixes #565762
2008-12-31 13:32:58 +00:00
Edward Hervey
8aa05d4cd7 Wrap gst-plugins-base's video helper library.
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/video.defs:
* gst/video.override:
* gst/videomodule.c: (initvideo):
Wrap gst-plugins-base's video helper library.
Partially fixes #565762
2008-12-31 13:06:58 +00:00
Edward Hervey
2b32341a3a Wrap gst-plugins-base's audio helper library.
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/audio.defs:
* gst/audio.override:
* gst/audiomodule.c: (initaudio):
Wrap gst-plugins-base's audio helper library.
Partially fixes #565762
2008-12-31 12:01:02 +00:00
Edward Hervey
e9d605a75c Updated core API additions
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/gst-0.10.20.ignore:
* gst/gst-0.10.22.ignore:
* gst/gst-types.defs:
* gst/gst.defs:
* gst/gstversion.override.in:
Updated core API additions
2008-12-30 19:20:31 +00:00
Alessandro Decina
fcf0d4fa2c gst/__init__.py: Add gst.Fourcc.__eq__ and gst.Fourcc.__ne__.
Original commit message from CVS:
* gst/__init__.py:
Add gst.Fourcc.__eq__ and gst.Fourcc.__ne__.
2008-12-09 14:30:43 +00:00
Edward Hervey
e29018175a gst/Makefile.am: Don't forget to dist/install gst-0.10.21.ignore
Original commit message from CVS:
* gst/Makefile.am:
Don't forget to dist/install gst-0.10.21.ignore
2008-12-09 11:48:15 +00:00
Vincent Genieux
e6cd027e1a gst/arg-types.py: Fix memory leak for GstMiniObjects used as parameters in class method overrides.
Original commit message from CVS:
Patch by : Vincent Genieux <mutex at runbox dot com>
* gst/arg-types.py:
Fix memory leak for GstMiniObjects used as parameters in class method
overrides.
Fixes #543961
2008-12-09 10:16:08 +00:00
Edward Hervey
75bd1f6f6d gst/gstpad.override: Fix memory leak for functions that return a newly created buffer as a function argument.
Original commit message from CVS:
* gst/gstpad.override:
Fix memory leak for functions that return a newly created buffer as
a function argument.
Fixes #554545
2008-12-06 15:52:31 +00:00
Edward Hervey
7a2babed30 codegen/argtypes.py: Add handling of 'keep-refcount' for GBoxed arguments.
Original commit message from CVS:
* codegen/argtypes.py:
Add handling of 'keep-refcount' for GBoxed arguments.
* gst/gst.defs:
Mark the appropriate 'gst_message_new_*' arguments when the method
takes the ownership of the passed gst.Structure/gst.TagList
* testsuite/test_message.py:
Test for creating messages that take a gst.Structure/gst.TagList as
argument and make sure they're properly created.
Fixes #556054
2008-12-06 15:41:41 +00:00
Thomas Vander Stichele
36fff62027 pep-8 cleanups
Original commit message from CVS:
pep-8 cleanups
2008-11-23 12:31:42 +00:00
Alessandro Decina
47a3d6fd28 Wrap gst_type_find_peek.
Original commit message from CVS:
* gst/gst.override:
* testsuite/test_typefind.py:
Wrap gst_type_find_peek.
2008-11-19 16:54:58 +00:00
Alessandro Decina
74a5097ae0 gst/: Add GstBaseTransform::transform_size virtual.
Original commit message from CVS:
* gst/base.defs:
* gst/gstbase.override:
Add GstBaseTransform::transform_size virtual.
2008-11-08 12:16:31 +00:00
Alessandro Decina
e9bf8a0868 gst/__init__.py: Fix on systems that don't have dlopen or don't support RTLD_GLOBAL and
Original commit message from CVS:
reviewed by: Edward Hervey <edward.hervey@collabora.co.uk>
* gst/__init__.py:
Fix on systems that don't have dlopen or don't support RTLD_GLOBAL and
RTLD_LAZY.
2008-11-08 11:49:30 +00:00
Jan Schmidt
d5c7296122 gst/gst.override: Fix compiler warning about missing format string.
Original commit message from CVS:
* gst/gst.override:
Fix compiler warning about missing format string.
2008-11-07 22:29:06 +00:00
Thiemo Seufer
f03c4cc922 gst/__init__.py: Use correct values for RTLD_GLOBAL and RTLD_LAZY on Linux/MIPS as the values are different there fro...
Original commit message from CVS:
Patch by: Thiemo Seufer <ths at networkno dot de>
* gst/__init__.py:
Use correct values for RTLD_GLOBAL and RTLD_LAZY on Linux/MIPS
as the values are different there from all other Linux platforms.
Fixes bug #553134.
2008-10-05 08:16:38 +00:00
Alexander Wirt
9fc25718b5 gst/__init__.py: Import modules in the correct order, i.e. libxml2 before
Original commit message from CVS:
Patch by: Alexander Wirt <formorer at debian dot org>
* gst/__init__.py:
Import modules in the correct order, i.e. libxml2 before
GStreamer stuff, to prevent unresolved symbols. Fixes bug #553131.
2008-10-05 08:14:42 +00:00
Edward Hervey
490f3fde52 Add API additions for upcoming 0.10.21 core release
Original commit message from CVS:
* configure.ac:
* gst/base.defs:
* gst/gst-0.10.21.ignore:
* gst/gst.defs:
* gst/gstversion.override.in:
Add API additions for upcoming 0.10.21 core release
2008-09-09 10:41:27 +00:00
Edward Hervey
3b20dd082d gst/gstcaps.override: Override gst_caps_append_structure() and make a copy of the structure given as argument.
Original commit message from CVS:
* gst/gstcaps.override:
Override gst_caps_append_structure() and make a copy of the structure
given as argument.
Fixes #549450
2008-08-26 15:58:15 +00:00
Edward Hervey
d17feec22d gst/: Add gstdebugutils.[ch] methods that weren't wrapped previously.
Original commit message from CVS:
* gst/gst-0.10.15.ignore:
* gst/gst-types.defs:
* gst/gst.defs:
Add gstdebugutils.[ch] methods that weren't wrapped previously.
We can now dump pipeline graphviz files from python ! :)
2008-08-11 16:40:45 +00:00
Edward Hervey
8c5646ea9e update upstream API changes
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/base.defs:
* gst/gst-0.10.18.ignore:
* gst/gst-0.10.20.ignore:
* gst/gst-pb-0.10.18.ignore:
* gst/gst-types.defs:
* gst/gst.defs:
* gst/gstversion.override.in:
* gst/interfaces.defs:
update upstream API changes
2008-07-02 11:23:39 +00:00
Jan Schmidt
468cb05597 gst/gstbuffer.override: the GstBuffer overrides seem to be confused about whether they're mini-objects or a GBoxed, a...
Original commit message from CVS:
* gst/gstbuffer.override:
the GstBuffer overrides seem to be confused about whether they're
mini-objects or a GBoxed, and it makes copy_on_write no actually
return a usable gst.Buffer. Fix up places where GstBuffers are
treated as GBoxed to use pygstminiobject functions.
Makes gst.Buffer('blah').copy_on_write() work.
* testsuite/test_buffer.py:
Add test for copy-on-write writability
* examples/buffer-draw.py:
Add an example of drawing on a GStreamer buffer with cairo
* gst/gstpad.override:
Make function static
2008-06-27 08:39:37 +00:00
Edward Hervey
103e13fa66 gst/: Fix double-import issues on macosx.
Original commit message from CVS:
* gst/common.h:
* gst/gstmodule.c:
* gst/interfaces.override:
* gst/pbutils.override:
* gst/pygstiterator.c:
* gst/pygstminiobject.c:
* gst/pygstminiobject.h:
Fix double-import issues on macosx.
Fixes #461838
2008-06-26 14:57:29 +00:00
Edward Hervey
4e33f9fdcc gst/gstmodule.c: Return None if GstMiniObject GValue doesn't contain anything (NULL).
Original commit message from CVS:
* gst/gstmodule.c: (pygstminiobject_from_gvalue):
Return None if GstMiniObject GValue doesn't contain anything (NULL).
Fixes #540221
2008-06-26 09:14:51 +00:00
Edward Hervey
6c881f6ab6 Re-opens #530417
Original commit message from CVS:
* gst/__init__.py:
* gst/gstelement.override:
* testsuite/test_element.py:
Revert 2008-05-08  Edward Hervey  <edward.hervey@collabora.co.uk>
Re-opens #530417
2008-06-13 11:11:38 +00:00
Edward Hervey
7e06ad12c6 Re-opens #514717
Original commit message from CVS:
* gst/gstpad.override:
* testsuite/test_pad.py:
Revert 2008-02-10  Alessandro Decina  <alessandro@nnva.org>
Re-opens #514717
2008-06-12 11:11:49 +00:00
Edward Hervey
a70c226dc3 gst/gstevent.override: gst_event_new_tag takes ownership of the GstTagList given as argument, therefore make a copy b...
Original commit message from CVS:
* gst/gstevent.override:
gst_event_new_tag takes ownership of the GstTagList given
as argument, therefore make a copy before calling the
C function.
Fixes #534888
2008-05-26 10:20:06 +00:00
Edward Hervey
cf22542b26 gst/extend/discoverer.py: Add timeout property.
Original commit message from CVS:
* gst/extend/discoverer.py:
Add timeout property.
Fix typos.
Beautify debugging.
Fix email.
2008-05-17 13:13:05 +00:00
Jan Schmidt
8fef95c5c2 gst/__init__.py: Make gst.Fraction simplify like the C counterpart
Original commit message from CVS:
Patch by: Jan Schmidt <thaytan at mad dot scientist dot com>
* gst/__init__.py:
Make gst.Fraction simplify like the C counterpart
Fixes #532809
2008-05-14 16:00:39 +00:00
Edward Hervey
e94ff65809 gst/gstcaps.override: Fix typo
Original commit message from CVS:
* gst/gstcaps.override:
Fix typo
2008-05-14 15:48:18 +00:00
Johan Dahlin
98d6484e8c New 'fancy' constructor for gst.Element, allows creating elements in a more pythonic way (i.e. myelement = gst.Elemen...
Original commit message from CVS:
Patch by: Johan Dahlin  <johan at gnome dot org>
* gst/__init__.py:
* gst/gstelement.override:
* testsuite/test_element.py:
New 'fancy' constructor for gst.Element, allows creating elements in a
more pythonic way (i.e. myelement = gst.Element("oggmux")).
Fixes #530417
2008-05-08 14:06:45 +00:00
Edward Hervey
5119268c19 gst/: Fix broken indentation
Original commit message from CVS:
* gst/__init__.py:
* gst/arg-types.py:
Fix broken indentation
Fixes #531697
2008-05-08 14:03:17 +00:00
Edward Hervey
d61ee05178 gst/: Use G_GSSIZE_FORMAT for ssize_t types.
Original commit message from CVS:
* gst/gst.override:
* gst/gstbuffer.override:
Use G_GSSIZE_FORMAT for ssize_t types.
Fixes build on macosx.
2008-05-08 10:59:48 +00:00
Alessandro Decina
4dd104c632 gst/gst.override: Add wrapping of gst_type_find_register.
Original commit message from CVS:
Patch by: Alessandro Decina <alessandro at nnva dot org>
* gst/gst.override:
Add wrapping of gst_type_find_register.
Fixes #529728
2008-04-28 10:49:03 +00:00
Alessandro Decina
0574bbf304 gst/gstelementfactory.override: Release GIL in gst_element_factory_overrides.
Original commit message from CVS:
Patch by: Alessandro Decina <alessandro at nnva dot org>
* gst/gstelementfactory.override:
Release GIL in gst_element_factory_overrides.
Fixes #529731
2008-04-28 10:36:10 +00:00
Rene Stadler
62bb670b67 gst/gst.override: Don't crash by unreffing NULL when calling the do_get_protocols_full method raises an exception.
Original commit message from CVS:
* gst/gst.override:
(_wrap_GstURIHandler__proxy_do_get_protocols_full):
Don't crash by unreffing NULL when calling the
do_get_protocols_full method raises an exception.
2008-02-29 12:37:43 +00:00
Edward Hervey
c68b638588 Fix memleak in gst.Pad.set_blocked_async()
Original commit message from CVS:
reviewed by: Edward Hervey  <edward.hervey@collabora.co.uk>
* gst/gstpad.override:
* testsuite/test_pad.py:
Fix memleak in gst.Pad.set_blocked_async()
Fixes #514717
2008-02-10 13:33:26 +00:00
Edward Hervey
23379fcd1c gst/gstpad.override: Wrap gst.Pad.start_task().
Original commit message from CVS:
* gst/gstpad.override:
Wrap gst.Pad.start_task().
2008-02-10 13:30:11 +00:00
Edward Hervey
c82ff829e2 gst/base.defs: gst_adapter_push steals the refcount.
Original commit message from CVS:
* gst/base.defs:
gst_adapter_push steals the refcount.
2008-02-08 08:37:36 +00:00
Jan Schmidt
a50f4736b8 gst/.cvsignore: Ignore generated pbutils.c
Original commit message from CVS:
* gst/.cvsignore:
Ignore generated pbutils.c
* gst/gst.override:
Fix compiler warning about the return type.
2008-01-31 14:14:50 +00:00
Edward Hervey
e97c51a473 gst/gstmodule.c: Remove do_pending_calls timeout which has been handled more gracefully in pygobject MainLoop for the...
Original commit message from CVS:
* gst/gstmodule.c: (init_gst):
Remove do_pending_calls timeout which has been handled more gracefully
in pygobject MainLoop for the past 3 years.
Fixes #512916
2008-01-30 12:36:06 +00:00
Jan Schmidt
9d3bfa8fdf gst/pbutils.override: Fix compilation against Python 2.4.
Original commit message from CVS:
* gst/pbutils.override:
Fix compilation against Python 2.4.
Fixes: #509522
2008-01-15 11:41:51 +00:00
Edward Hervey
7b27608a71 Series of update for new API added to 0.10.16.
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/base.defs:
* gst/gst-0.10.15.ignore:
* gst/gst-0.10.16.ignore:
* gst/gst-pb-0.10.15.ignore:
* gst/gst-pb-0.10.16.ignore:
* gst/gst.defs:
* gst/gstversion.override.in:
* gst/pbutils.override:
* testsuite/test_pbutils.py:
Series of update for new API added to 0.10.16.
Remove wrong ignore file for 0.10.15 -base.
2008-01-14 12:44:06 +00:00