Commit graph

722 commits

Author SHA1 Message Date
Johan Dahlin
1b1b56c762 gst/__init__.py: Implement multiplication, divison and float coercing for fractions.
Original commit message from CVS:

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

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

Implement sq_contains and add tests for gst.TagList.
2007-03-17 13:36:48 +00:00
Edward Hervey
e8b581108d gst/__init__.py: Import libxml2 (if available) at import time with GLOBAL and LAZY flags.
Original commit message from CVS:
* gst/__init__.py:
Import libxml2 (if available) at import time with GLOBAL and LAZY flags.
Fixes #398567
2007-03-02 11:03:46 +00:00
Edward Hervey
34f77d7db3 gst/__init__.py: Added __eq__ method to fractions so we can check if two fractions are equal.
Original commit message from CVS:
* gst/__init__.py:
Added __eq__ method to fractions so we can check if two fractions are
equal.
* gst/pygstvalue.c: (my_gcd), (pygst_value_from_pyobject):
Attempt to simplify gst.Fraction before filling in a GValue.
Fixes #381243
* testsuite/test_caps.py:
* testsuite/test_struct.py:
Minor beauty fixes. framerates are fractions, not floats.
2007-03-01 14:21:52 +00:00
Edward Hervey
78dc74984d gst/interfacesmodule.c: initialize pygobject in the gst.interfaces modules. The absence of it causes segfaults on Sol...
Original commit message from CVS:
reviewed by: Edward Hervey  <edward@fluendo.com>
* gst/interfacesmodule.c: (initinterfaces):
initialize pygobject in the gst.interfaces modules. The absence of it
causes segfaults on Solaris and MIPS machines.
Fixes #343980
2007-03-01 13:47:12 +00:00
Michael Smith
77015e02a4 gst/base.defs: Limitations in the code generator mean that we can't handle PushSrc in a way which works, so just comm...
Original commit message from CVS:
* gst/base.defs:
Limitations in the code generator mean that we can't handle PushSrc
in a way which works, so just comment this out until someone wants
to tackle this more completely.
2007-02-27 10:44:21 +00:00
Michael Smith
4d9d385f44 gst/pygstvalue.c: Make buffers-in-gvalues more generic: handle all miniobjects
Original commit message from CVS:
* gst/pygstvalue.c: (pygst_value_init_for_pyobject),
(pygst_value_from_pyobject):
Make buffers-in-gvalues more generic: handle all miniobjects
* testsuite/test_caps.py:
Add a bit to one the test for buffers in caps.
2007-02-25 12:11:34 +00:00
Michael Smith
e4bd9d306c testsuite/test_caps.py: Add test for gst.Buffer in caps.
Original commit message from CVS:
* testsuite/test_caps.py:
Add test for gst.Buffer in caps.
2007-02-24 14:14:14 +00:00
Michael Smith
3a0177e741 gst/pygstvalue.c: Implement gst.Buffer support in GValues (e.g. for caps containing buffers)
Original commit message from CVS:
* gst/pygstvalue.c: (pygst_value_as_pyobject),
(pygst_value_init_for_pyobject), (pygst_value_from_pyobject):
Implement gst.Buffer support in GValues (e.g. for caps containing
buffers)
2007-02-22 16:13:53 +00:00
David Schleef
28631a21d9 Makefile.am: Add ACLOCAL_AMFLAGS
Original commit message from CVS:
* Makefile.am: Add ACLOCAL_AMFLAGS
2007-02-16 02:39:56 +00:00
Edward Hervey
9a4fa9567c testsuite/common.py: A private variable of unittest.TestCase changed name in python 2.5.
Original commit message from CVS:
* testsuite/common.py:
A private variable of unittest.TestCase changed name in python 2.5.
This fixes make check with python2.5
2007-02-04 11:40:09 +00:00
Edward Hervey
1856ed8de0 gst/gstpad.override: Allow removing the negotiated pads of a cap by setting them to None.
Original commit message from CVS:
reviewed by: Edward Hervey  <edward@fluendo.com>
* gst/gstpad.override:
Allow removing the negotiated pads of a cap by setting them to None.
* testsuite/test_pad.py:
Added un-negotian of pads' caps to test above patch.
Fixes #363795
2007-02-04 10:54:48 +00:00
Edward Hervey
935a94da54 gst/interfaces.override: Gracefully handle the case where gst_property_probe_get_values_name() returns NULL.
Original commit message from CVS:
* gst/interfaces.override:
Gracefully handle the case where gst_property_probe_get_values_name()
returns NULL.
2007-02-04 10:44:40 +00:00
Edward Hervey
04a182516c Fully implement GstPropertyProbe interface, with unit test.
Original commit message from CVS:
reviewed by: Edward Hervey  <edward@fluendo.com>
* gst/interfaces.defs:
* gst/interfaces.override:
* testsuite/test_interface.py:
Fully implement GstPropertyProbe interface, with unit test.
Fixes #376996
2007-02-04 10:23:38 +00:00
Edward Hervey
4c9d89a324 configure.ac: Back to development cycle.
Original commit message from CVS:
* configure.ac:
Back to development cycle.
2007-01-31 16:53:15 +00:00
Edward Hervey
9e4c9bfcb9 Releasing 0.10.7
Original commit message from CVS:
Releasing 0.10.7
2007-01-31 16:51:37 +00:00
Edward Hervey
468e10172a codegen/codegen.py: Don't register interface if it is ignored
Original commit message from CVS:
* codegen/codegen.py:
Don't register interface if it is ignored
* configure.ac:
GST_PB_MINOR_VERSION doesn't appear by magic, you actually have to
parse it from pkg-config !
* gst/gst-pb-0.10.11.ignore:
Ignore GstVideoOrientation type altogether.
* gst/interfaces.override:
Include gstversion.override so that non-existent API is properly ignored.
Should fix #401051 once and for good now.
2007-01-29 12:27:46 +00:00
Edward Hervey
17f1385678 ChangeLog surgery : Indicate which bug last ocmmit fixed.
Original commit message from CVS:
ChangeLog surgery : Indicate which bug last ocmmit fixed.
----------------------------------------------------------------------
2007-01-29 11:17:45 +00:00
Edward Hervey
7fa0fd6ce0 configure.ac: Check for availability of video-orientation interface
Original commit message from CVS:
* configure.ac:
Check for availability of video-orientation interface
* gst/gst.override:
don't forget to increment the refcount of Py_None before returning it.
* gst/interfaces.override:
If video-orientation interface isn't available, don't include the
header.
2007-01-29 11:16:35 +00:00
Edward Hervey
c5741e1c64 Add ignore file for 0.10.12 API additions
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/gstversion.override.in:
* gst/gst-0.10.12.ignore:
Add ignore file for 0.10.12 API additions
* gst/gst.defs:
* gst/base.defs:
* gst/gst-types.defs:
Add new API definitions
* gst/gst-0.10.10.ignore:
* gst/gst-0.10.11.ignore:
Fixup ignore files.
* testsuite/test_segment.py:
The update return value is uncertain and will soon be deprecated, don't
check against it anymore.
2007-01-26 11:58:55 +00:00
Thomas Vander Stichele
7a27ebbd79 wrap mixer set_volume, use tuple to match get_volume
Original commit message from CVS:
* examples/mixer.py:
* gst/interfaces.override:
wrap mixer set_volume, use tuple to match get_volume
2007-01-17 11:22:04 +00:00
Thomas Vander Stichele
10fe9ba7f4 gst/pygstexception.*: gst.element_factory_make should raise ElementNotFoundError.
Original commit message from CVS:
* gst/pygstexception.c: (element_not_found_error_init),
(pygst_exceptions_register_classes):
* gst/pygstexception.h:
gst.element_factory_make should raise ElementNotFoundError.
Subclass it from PluginNotFoundError so we can add it compatibly
and remove the wrong one later.
* gst/gstelementfactory.override:
raise ElementNotFoundError
2007-01-17 07:30:11 +00:00
Thomas Vander Stichele
7e94773d0f gst/interfaces.*: wrap mixer get_volume
Original commit message from CVS:
* gst/interfaces.defs:
* gst/interfaces.override:
wrap mixer get_volume
* examples/Makefile.am:
* examples/mixer.py:
add an example using it
2007-01-17 06:27:38 +00:00
Thomas Vander Stichele
bd220304ef configure.ac: fix use of PKG_CHECK_MODULES check for a pygobject of at least 2.11 for a value_from_pyobject fix
Original commit message from CVS:
* configure.ac:
fix use of PKG_CHECK_MODULES
check for a pygobject of at least 2.11 for a value_from_pyobject fix
* gst/gstobject.override:
use it
2007-01-17 06:15:33 +00:00
Thomas Vander Stichele
39b3a029bb gst/extend/discoverer.py: this is a module, not a program, so don't require versions
Original commit message from CVS:
* gst/extend/discoverer.py:
this is a module, not a program, so don't require versions
2007-01-17 05:02:01 +00:00
Thomas Vander Stichele
2b4ab44e91 configure.ac: check for stuff added in gst-pb 0.10.11
Original commit message from CVS:
* configure.ac:
check for stuff added in gst-pb 0.10.11
* gst/Makefile.am:
* gst/interfaces.defs:
* gst/interfaces.override:
add video orientation interface
2007-01-17 04:40:33 +00:00
Edward Hervey
db76ff3908 gst/gst.defs: Add declaration of gst_object_set_property so we can use our MT-safe version of set_property().
Original commit message from CVS:
* gst/gst.defs:
Add declaration of gst_object_set_property so we can use our MT-safe
version of set_property().
* gst/gstobject.override:
Implement a MT-safe version of g_object_set_property for GstObject.
The problem is that currently g_object_set_property is called in
pygobject with the GIL lock taken. This can cause deadlocks.
Remove this hack once bug #395048 is fixed in pygobject and we depend on
the fixed version.
Thanks to Lord Wingo of the "realm.py haters club" for proposing the
idea.
2007-01-11 17:45:46 +00:00
Edward Hervey
4acc40c8d2 codegen/codegen.py: When chaining up to the parent class methods from python to C, we need to allow threads (i.e. rel...
Original commit message from CVS:
* codegen/codegen.py:
When chaining up to the parent class methods from python to C, we need
to allow threads (i.e. release the GIL).
* gst/gstbase.override:
* gst/gstbin.override:
Modify __do_*() overrides in the same way as above.
2007-01-10 16:13:29 +00:00
Thomas Vander Stichele
67e9861541 gst/extend/discoverer.py: No shebang line needed since there is no main code.
Original commit message from CVS:
* gst/extend/discoverer.py:
No shebang line needed since there is no main code.
2007-01-05 10:48:36 +00:00
Edward Hervey
d6df984612 gst/gst.defs: Update API definitions.
Original commit message from CVS:
* gst/gst.defs:
Update API definitions.
* gst/common.h:
* gst/gstpad.override:
Add wrapper functions for settings activate, activatepull and
activatepush functions on pads.
* gst/gst.override:
Wrapper for gst_segment_set_seek() and gst_segment_clip()
Remove global ignore for *_init(), allows gst_segment_init() to be
properly code-generated.
* testsuite/Makefile.am:
* testsuite/test_segment.py:
Add unit test for gst.Segment object.
2006-12-19 11:38:01 +00:00
Edward Hervey
b20b1ec8c3 testsuite/test_pad.py: Activate pads before using them.
Original commit message from CVS:
* testsuite/test_pad.py:
Activate pads before using them.
2006-12-16 15:33:02 +00:00
Edward Hervey
697b6c4b32 RELEASE: Commit 0.10.6 RELEASE file. Better late than never :(
Original commit message from CVS:
* RELEASE:
Commit 0.10.6 RELEASE file. Better late than never :(
2006-12-16 15:16:33 +00:00
Edward Hervey
41e2b77060 Move GstIterator ArgType definition and usage for the codegenerator to gst/arg-types.py. It has nothing to do in the ...
Original commit message from CVS:
* codegen/argtypes.py:
* gst/arg-types.py:
Move GstIterator ArgType definition and usage for the codegenerator
to gst/arg-types.py. It has nothing to do in the codegenerator code.
2006-12-16 14:41:21 +00:00
Thomas Vander Stichele
fb23b775cc add doap file
Original commit message from CVS:
* Makefile.am:
* gst-python.doap:
* gst-python.spec.in:
add doap file
2006-12-15 17:02:31 +00:00
Tim-Philipp Müller
455d84b1a5 gst/interfaces.defs: GstColorBalanceChannel is a GObject, not a GstObject. Fixes #383805.
Original commit message from CVS:
* gst/interfaces.defs:
GstColorBalanceChannel is a GObject, not a GstObject. Fixes #383805.
2006-12-11 09:58:51 +00:00
Edward Hervey
3fb94f72dc changelog surgery, remove the conflict that has been there for 7 month
Original commit message from CVS:
changelog surgery, remove the conflict that has been there for 7 month
2006-12-04 19:54:19 +00:00
Edward Hervey
d79b29c407 configure.ac: Back to development cycle
Original commit message from CVS:
* configure.ac:
Back to development cycle
2006-12-04 17:54:39 +00:00
Edward Hervey
345a6f7572 Releasing gst-python 0.10.6
Original commit message from CVS:
Releasing gst-python 0.10.6
2006-12-04 17:19:44 +00:00
Edward Hervey
6238a5e687 configure.ac: 0.10.5.4 pre-release
Original commit message from CVS:
* configure.ac:
0.10.5.4 pre-release
2006-12-04 16:41:12 +00:00
Edward Hervey
c09393b5b9 gst/: Add implementation of gst.Pad.set_setcaps_function().
Original commit message from CVS:
* gst/common.h:
* gst/gstpad.override:
Add implementation of gst.Pad.set_setcaps_function().
2006-12-01 17:41:28 +00:00
Edward Hervey
b2d90fa5ac configure.ac: 0.10.5.3 pre-release
Original commit message from CVS:
* configure.ac:
0.10.5.3 pre-release
2006-11-28 15:36:50 +00:00
Edward Hervey
d4a8830b7b examples/audio-controller.py: Fix example, use proper property name. Doesn't change anything to the way it used to wo...
Original commit message from CVS:
* examples/audio-controller.py:
Fix example, use proper property name. Doesn't change anything to the
way it used to work, but since it's an example it should be done
properly.
2006-11-22 17:31:02 +00:00
Edward Hervey
34d62eb035 codegen/override.py: Fix the lookup of override files in the specified search directories.
Original commit message from CVS:
* codegen/override.py:
Fix the lookup of override files in the specified search directories.
* gst/Makefile.am:
Don't distribute gstversion.override
Fixup .defs => .c make instructions
All the above fixes the cases where you're building in a directory
different from the source directory.
2006-11-22 17:20:21 +00:00
Michael Smith
26f5653a79 gst/extend/discoverer.py: Avoid buffering infinite amounts of decoded data if a decoder is feeding us data without a ...
Original commit message from CVS:
* gst/extend/discoverer.py:
Avoid buffering infinite amounts of decoded data if a decoder is
feeding us data without a duration (or with bad duration values).
2006-11-15 14:36:39 +00:00
Edward Hervey
f32834da5f gst/extend/discoverer.py: Make the queue buffer up 1s of data before outputting to the sinks. This should give time f...
Original commit message from CVS:
* gst/extend/discoverer.py: Make the queue buffer up 1s of data before
outputting to the sinks. This should give time for some demuxers like
mpegdemux or fluasfdemux to discover a bit more about the muxed
stream and add the correct pads.
Fixes #371969
2006-11-07 12:24:13 +00:00
Andy Wingo
0650a27089 examples/: New tool, runs the discoverer on a file and prints out what we get.
Original commit message from CVS:
2006-11-07  Andy Wingo  <wingo@pobox.com>

* examples/Makefile.am (examples_DATA):
* examples/gst-discover: New tool, runs the discoverer on a file
and prints out what we get.
2006-11-07 11:47:26 +00:00
Edward Hervey
fb36295c7a gst/gst.override: Use a copy of the caps.
Original commit message from CVS:
* gst/gst.override:
Use a copy of the caps.
2006-11-03 15:54:47 +00:00
Edward Hervey
37f78c4ab8 configure.ac: 0.10.5.2 pre-release
Original commit message from CVS:
* configure.ac:
0.10.5.2 pre-release
2006-10-20 11:51:35 +00:00
Edward Hervey
83e76dd47d gst/gst-0.10.10.ignore: Added symbols added in 0.10.10
Original commit message from CVS:
* gst/gst-0.10.10.ignore:
Added symbols added in 0.10.10
* gst/gst-0.10.6.ignore:
gst_dp_packetizer_new() addition
* gst/gst.defs:
Updated API for 0.10.10 symbols
* gst/gstmodule.c: (init_gst):
Added GST_TAG_EXTENDED_COMMENT which appeared in 0.10.10
* gst/libs.defs:
Added gst_dp_packetizer_new() which was added in 0.10.6. It still won't
work because GstDPPacketizer is a pointer. It needs to have a GBoxed
definition in order to be used properly within gst-python.
Also added controller-related additions
2006-10-20 11:33:01 +00:00
Edward Hervey
ad1f511e6b Added ignore files for 0.10.11 gstreamer core
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/gst-0.10.11.ignore:
* gst/gstversion.override.in:
Added ignore files for 0.10.11 gstreamer core
* gst/base.defs:
Updated API for base libs
* gst/gst.defs:
Updated API for core
* gst/gst.override:
remove #ifdef for methods which weren't available in versions of pygtk
we don't support anymore.
* gst/gstbase.override:
Added overrides for GstBaseSink::get_times() virtual method
* gst/gstbin.override:
Added override for GstBin::handle_message() virtual method
2006-10-20 10:41:46 +00:00
Edward Hervey
c8e5fc7402 examples/Makefile.am: Remove gst123 and vorbisplay.py from sources, and add decodebin.py
Original commit message from CVS:
* examples/Makefile.am:
Remove gst123 and vorbisplay.py from sources, and add decodebin.py
2006-10-20 09:51:25 +00:00
Edward Hervey
5b2c08ac37 examples/: Removed gst123 and vorbisplay examples which weren't working with 0.10, and replaced them with decodebin.py
Original commit message from CVS:
reviewed by: Edward Hervey  <edward@fluendo.com>
* examples/decodebin.py:
* examples/gst123:
* examples/vorbisplay.py:
Removed gst123 and vorbisplay examples which weren't working with
0.10, and replaced them with decodebin.py
Closes #362183 and #362202
2006-10-20 09:47:16 +00:00
Edward Hervey
71f58a44b4 examples/: Closes #362290 and #362272
Original commit message from CVS:
* examples/audioconcat.py:
* examples/cp.py:
Port to 0.10 by Jason Gerard DeRose <jderose@jasonderose.org>
Closes #362290 and #362272
* examples/bps.py:
Indentation fixes by Jason Gerard DeRose <jderose@jasonderose.org>
Closes #362011
Also small fix for Usage string
2006-10-20 09:27:43 +00:00
Tim-Philipp Müller
6d8f3a459f gst/gst.defs: Don't use 'interface' as variable name, MingW doesn't like that (fixes #359375).
Original commit message from CVS:
* gst/gst.defs:
Don't use 'interface' as variable name, MingW doesn't like that
(fixes #359375).
2006-10-16 14:46:19 +00:00
Tim-Philipp Müller
f49c8781e9 gst/pygstiterator.c: Printf format fix.
Original commit message from CVS:
* gst/pygstiterator.c: (pygst_iterator_new):
Printf format fix.
2006-10-05 18:27:58 +00:00
Edward Hervey
c79185a013 codegen/argtypes.py: Revert the UInt64Arg modifications from upstream. It forces us to give a PyLong, whereas we can ...
Original commit message from CVS:
* codegen/argtypes.py:
Revert the UInt64Arg modifications from upstream. It forces us to give
a PyLong, whereas we can directly use the 'K' argument parsing for that.
2006-10-03 09:24:11 +00:00
Edward Hervey
460307745b ltihooks.py: Removed
Original commit message from CVS:
* ltihooks.py:
Removed
* testsuite/common.py:
ltihooks is dead, long live gstltihooks. This should complete thomas'
fix of #357310.
2006-09-29 09:53:11 +00:00
Jan Schmidt
9f217d259f gst/Makefile.am: Explicitly export _PyGObject_API from our modules, as it's apparently needed for import. Previously ...
Original commit message from CVS:
* gst/Makefile.am:
Explicitly export _PyGObject_API from our modules, as it's apparently
needed for import. Previously we implicitly relied on a bug in the
core providing --export-dynamic as a link flag.
2006-09-28 10:03:22 +00:00
Thomas Vander Stichele
fb7c03d8cd Fix #357310
Original commit message from CVS:

* Makefile.am:
* gst/__init__.py:
* gstltihooks.py:
Fix #357310
2006-09-23 10:43:18 +00:00
Rene Stadler
75b33a6cab gst/gstlibs.override: Fixes for GstController creation memleak fixes.
Original commit message from CVS:
Patch by: Rene Stadler <mail@renestadler.de>
* gst/gstlibs.override:
Fixes for GstController creation
memleak fixes.
2006-09-22 13:21:59 +00:00
Edward Hervey
077452cf30 gst/extend/Makefile.am: Forgot to add 3 previous files to the Makefile so they get installed.
Original commit message from CVS:
* gst/extend/Makefile.am:
Forgot to add 3 previous files to the Makefile so they get
installed.
2006-09-12 11:16:08 +00:00
Edward Hervey
de855398a5 gst/extend/: Revival of the jukebox (and leveller) using 0.10 and gnonlin.
Original commit message from CVS:
* gst/extend/jukebox.py:
* gst/extend/leveller.py:
* gst/extend/sources.py:
Revival of the jukebox (and leveller) using 0.10 and gnonlin.
Still needs a bit of love, but functionnal enough.
2006-09-12 11:14:24 +00:00
Edward Hervey
422b65fed9 Give proper credits to the author of the patch
Original commit message from CVS:
Give proper credits to the author of the patch
2006-09-10 08:56:22 +00:00
Edward Hervey
bbdf0313b1 gst/libs.defs: Add definition for GstParamFlags, extension of the GParamFlags.
Original commit message from CVS:
* gst/libs.defs:
Add definition for GstParamFlags, extension of the GParamFlags.
Only contains one flag, gst.PARAM_CONTROLLABLE.
Closes #355150
2006-09-10 08:53:26 +00:00
Edward Hervey
9f017ec3e9 gst/gst-0.10.10.ignore: API addition
Original commit message from CVS:
* gst/gst-0.10.10.ignore:
API addition
* gst/gst.defs:
Added new ghostpad functions.
2006-08-31 14:03:44 +00:00
Edward Hervey
bef4334ee2 gst/gst.override: We don't own a reference on the elements contained in the list returned by gst_xml_get_topelements().
Original commit message from CVS:
* gst/gst.override:
We don't own a reference on the elements contained in the list
returned by gst_xml_get_topelements().
2006-08-29 10:05:40 +00:00
Edward Hervey
389ed247ab testsuite/test_pad.py: The bug was not a bug. Fixed the typo.
Original commit message from CVS:
* testsuite/test_pad.py:
The bug was not a bug. Fixed the typo.
2006-08-29 09:23:59 +00:00
Thomas Vander Stichele
7e1fa1d97e testsuite/test_pad.py: add a test for event probes - shows a bug, for which I commented the failUnless out
Original commit message from CVS:
* testsuite/test_pad.py:
add a test for event probes - shows a bug, for which I commented
the failUnless out
2006-08-29 07:43:42 +00:00
Edward Hervey
721bbf37c4 configure.ac: Whoops, typo error :)
Original commit message from CVS:
* configure.ac:
Whoops, typo error :)
2006-08-21 12:55:37 +00:00
Edward Hervey
ca806c5417 configure.ac: attempt to fix build.
Original commit message from CVS:
* configure.ac:
attempt to fix build.
2006-08-21 11:43:01 +00:00
Edward Hervey
bc234e3800 configure.ac: If pygobject is available, only build with it, else try to find pygtk to stay compatible with older ver...
Original commit message from CVS:
* configure.ac:
If pygobject is available, only build with it, else try to find pygtk
to stay compatible with older version.
* gst/Makefile.am:
Switch to pygobject CFLAGS.
* testsuite/Makefile.am:
Switch to pygobject CFLAGS.
2006-08-21 11:31:51 +00:00
Edward Hervey
c070c75beb codegen/codegen.py: newer pygobject's pyg_constant_strip_prefix() now return a const gchar * whereas PyModule_AddIntC...
Original commit message from CVS:
* codegen/codegen.py:
newer pygobject's pyg_constant_strip_prefix() now return a const gchar *
whereas PyModule_AddIntConstant() takes a normal gchar*.
Closes #349623
2006-08-08 19:21:51 +00:00
Andy Wingo
e462546b9a examples/synchronizer.py: Actually appears to work now, will have to try with guadec videos on Monday.
Original commit message from CVS:
2006-08-05  Andy Wingo  <wingo@pobox.com>

* examples/synchronizer.py: Actually appears to work now, will
have to try with guadec videos on Monday.

* examples/remuxer.py (PlayerWindow.create_ui): Disable the
auto-adjusting of cut in and cut out times, it's annoying.
2006-08-05 17:15:52 +00:00
Andy Wingo
3274a3ac03 examples/synchronizer.py: New file, a bit of a hack to remuxer.py, but for resyncing a bad ogg. Only UI at the moment..
Original commit message from CVS:
2006-08-04  Andy Wingo  <wingo@pobox.com>

* examples/synchronizer.py: New file, a bit of a hack to
remuxer.py, but for resyncing a bad ogg. Only UI at the moment..
2006-08-04 16:42:15 +00:00
Andy Wingo
990ca4912f changelog
Original commit message from CVS:
changelog
2006-07-28 13:56:43 +00:00
James Doc Livingston
fd2078bb04 examples/remuxer.py (RemuxBin._do_seek, Remuxer._bus_watch): Use normal seeks instead of segment seeks so that EOS is...
Original commit message from CVS:
2006-07-28  Andy Wingo  <wingo@pobox.com>

* examples/remuxer.py (RemuxBin._do_seek, Remuxer._bus_watch): Use
normal seeks instead of segment seeks so that EOS is handled
properly. Patch by James "Doc" Livingston <doclivingston at
gmail.com>. (#348416)

* examples/remuxer.py (RemuxBin._new_demuxed_pad): Increase the
buffer size for dealing with terribly muxed files.
2006-07-28 13:56:20 +00:00
Edward Hervey
d2372173a0 configure.ac: Back to development cycle
Original commit message from CVS:
* configure.ac:
Back to development cycle
2006-07-20 17:05:22 +00:00
Edward Hervey
56caaf8b7a 0.10.5 "My Little Poney wants some Funk" release
Original commit message from CVS:
0.10.5 "My Little Poney wants some Funk" release
----------------------------------------------------------------------
2006-07-20 17:03:57 +00:00
Edward Hervey
8ef500156b configure.ac: 0.10.4.2 pre-release
Original commit message from CVS:
* configure.ac: 0.10.4.2 pre-release
2006-07-19 14:21:36 +00:00
Edward Hervey
406f1b0fc8 Add new ignore for 0.10.10 API additions
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/gst-0.10.10.ignore:
* gst/gstversion.override.in:
Add new ignore for 0.10.10 API additions
* gst/gst.defs:
Added definitions for new segtrap functions
2006-07-18 15:33:41 +00:00
Edward Hervey
26393eba9d gst/gstmodule.c: Added gst.BUFFER_OFFSET_NONE for proper (guint64) -1 conversion between python and C.
Original commit message from CVS:
* gst/gstmodule.c: (init_gst):
Added gst.BUFFER_OFFSET_NONE for proper (guint64) -1 conversion between
python and C.
2006-07-05 11:35:12 +00:00
Edward Hervey
ebed604ed8 gst/: Repeat 100 times : "I shouldn't commit patches without checking them thoroughly, especially if they come from s...
Original commit message from CVS:
* gst/gstelement.override:
* gst/gstevent.override:
* gst/gstmessage.override:
* gst/gstquery.override:
Repeat 100 times : "I shouldn't commit patches without checking
them thoroughly, especially if they come from someone I trust".
Fix the broken Py_BuildValue.
2006-07-03 14:44:20 +00:00
Thomas Vander Stichele
04387f3302 add gcov stuff
Original commit message from CVS:
* Makefile.am:
* configure.ac:
* gst/Makefile.am:
add gcov stuff
2006-07-03 13:32:08 +00:00
Thomas Vander Stichele
fc67bb7842 gst/gstmodule.c: don't crash when error is NULL
Original commit message from CVS:
* gst/gstmodule.c: (init_gst):
don't crash when error is NULL
2006-07-03 13:31:19 +00:00
Edward Hervey
6992f7de67 gst/gstmessage.override: State change is a list and not a tuple
Original commit message from CVS:
* gst/gstmessage.override:
State change is a list and not a tuple
* gst/gstpad.override:
query_position() got busted in previous commit.
2006-07-03 09:31:26 +00:00
Edward Hervey
c52a37cd82 gst/: Use Py_BuildValue to construct tuples.
Original commit message from CVS:
reviewed by: Edward Hervey  <edward@fluendo.com>
* gst/gstelement.override:
* gst/gstevent.override:
* gst/gstmessage.override:
* gst/gstpad.override:
* gst/gstquery.override:
Use Py_BuildValue to construct tuples.
Use tuples for collection of different objects.
See http://www.python.org/doc/faq/general/#why-are-there-separate-tuple-and-list-data-types
* testsuite/test_event.py:
[message|query|event].parse_* now return tuples and not list.
Fixes #334548
2006-07-03 09:01:18 +00:00
Edward Hervey
1c5a18e82c Removal of all glib < 2.8 cruft since GStreamer core now requires glib >= 2.8
Original commit message from CVS:
Removal of all glib < 2.8 cruft since GStreamer core now requires
glib >= 2.8
* codegen/argtypes.py:
remove gstobject cruft from ObjectArg
* configure.ac:
Require glib >= 2.8.0
* gst/Makefile.am:
* gst/pygstobject.c:
* gst/pygstobject.h:
Remove pygstobject.[ch]
* gst/common.h:
Don't include removed header file.
* gst/gst.override:
* gst/gstbin.override:
* gst/gstbus.override:
* gst/gstelement.override:
* gst/gstelementfactory.override:
* gst/gstmessage.override:
* gst/gstobject.override:
* gst/gstpad.override:
* gst/interfaces.override:
* gst/pygstiterator.c: (pygst_iterator_iter_next):
Switch from using pygstobject* functions to using pygobject* functions.
* gst/gstmodule.c: (sink_gstobject), (init_gst):
Move GstObject sink function here and use standard gobject refcounting.
2006-07-02 15:25:04 +00:00
Edward Hervey
33b77c7759 configure.ac: 0.10.7 ignore file is for 0.10.7 AND 0.10.8 (due to brown paperbag release).
Original commit message from CVS:
* configure.ac: (GST_LIBS):
0.10.7 ignore file is for 0.10.7 AND 0.10.8 (due to brown paperbag
release).
2006-06-22 19:12:36 +00:00
Edward Hervey
cee7d60ee4 codegen/codegen.py: Always unblock threads when going to C.
Original commit message from CVS:
* codegen/codegen.py:
Always unblock threads when going to C.
* gst/gst.defs:
Revert unblock-threads noise.
2006-06-15 09:58:08 +00:00
Edward Hervey
a48e8b6e6b gst/gst-types.defs: Added fields for GstPadTemplate.
Original commit message from CVS:
* gst/gst-types.defs:
Added fields for GstPadTemplate.
* gst/gst.defs:
Made gst_element_class_get_template_list a GstElement method.
* gst/gstelement.override:
Override for gst.Element.get_template_list()
* gst/gstpad.override:
Override getter for GstStaticPadTemplate.static_caps so that it uses
the correct pointer.
2006-06-14 10:00:32 +00:00
Edward Hervey
90340f1908 testsuite/gstpython.supp: Keeping suppresions
Original commit message from CVS:
* testsuite/gstpython.supp:
Keeping suppresions
2006-06-13 17:43:40 +00:00
Edward Hervey
3925d35f03 testsuite/gstpython.supp: Tim might have fixed this suppression. Commenting it.
Original commit message from CVS:
* testsuite/gstpython.supp:
Tim might have fixed this suppression. Commenting it.
2006-06-13 16:52:05 +00:00
Edward Hervey
2364764ea2 testsuite/gstpython.supp: One more suppression added to bug #344761
Original commit message from CVS:
* testsuite/gstpython.supp:
One more suppression added to bug #344761
2006-06-13 14:43:41 +00:00
Edward Hervey
095a66b690 .cvsignore: Ignore more files
Original commit message from CVS:
* .cvsignore:
Ignore more files
2006-06-13 13:45:33 +00:00
Edward Hervey
dd235df297 testsuite/gstpython.supp: Added suppresion for leaks of bug #344761.
Original commit message from CVS:
* testsuite/gstpython.supp:
Added suppresion for leaks of bug #344761.
2006-06-13 13:28:47 +00:00
Edward Hervey
15c83c45a0 Ignore log files.
Original commit message from CVS:
* .cvsignore:
* testsuite/.cvsignore:
Ignore log files.
2006-06-13 11:05:08 +00:00
Edward Hervey
dc62e40fd7 Makefile.am: Cleanup pygst.pyc file.
Original commit message from CVS:
* Makefile.am: (CLEANFILES):
Cleanup pygst.pyc file.
2006-06-13 10:59:44 +00:00
Edward Hervey
54b5a6bf6e gst/gst.defs: Add 'unblock-threads #t' for critical functions/methods.
Original commit message from CVS:
* gst/gst.defs:
Add 'unblock-threads #t' for critical functions/methods.
2006-06-13 10:55:09 +00:00
Edward Hervey
8c3aae3818 testsuite/: Added cleanup file to initialize registry before running checks.
Original commit message from CVS:
* testsuite/Makefile.am:
* testsuite/runtests.py:
* testsuite/cleanup.py:
Added cleanup file to initialize registry before running checks.
Added G_DEBUG=gc-friendly to valgrinding
Only test test_*.py files
2006-06-12 16:51:36 +00:00
Edward Hervey
744d54fc59 .cvsignore: more files to ignore
Original commit message from CVS:
* .cvsignore:
more files to ignore
2006-06-11 16:32:18 +00:00
Edward Hervey
098f0e4f39 pygst.py.in: Raise RequiredVersionError(ValueError, AssertionError) wherever applicable. This makes the new system (r...
Original commit message from CVS:
* pygst.py.in:
Raise RequiredVersionError(ValueError, AssertionError) wherever
applicable. This makes the new system (raising an error) compatible
with the old system (assertions).
Fixes #341114
2006-06-09 17:21:40 +00:00
Edward Hervey
2bd7a2b2e2 pygst.py.in: Don't import non-used modules
Original commit message from CVS:
* pygst.py.in:
Don't import non-used modules
* testsuite/Makefile.am:
Heavy valgrinding por favor !
(%.valgrind): with always-malloc for GSlice
2006-06-09 14:19:16 +00:00
Edward Hervey
981bd2cbd8 pygst.py.in: Don't import non-used modules
Original commit message from CVS:
* pygst.py.in:
Don't import non-used modules
* testsuite/Makefile.am:
Heavy valgrinding por favor !
2006-06-09 14:15:53 +00:00
Edward Hervey
bc17f73dcb codegen/: Updated codegenerator to current pygtk one.
Original commit message from CVS:
* codegen/Makefile.am:
* codegen/argtypes.py:
* codegen/codegen.py:
* codegen/definitions.py:
* codegen/defsconvert.py:
* codegen/defsparser.py:
* codegen/docextract.py:
* codegen/docextract_to_xml.py:
* codegen/docgen.py:
* codegen/h2def.py:
* codegen/mergedefs.py:
* codegen/missingdefs.py:
* codegen/mkskel.py:
* codegen/override.py:
* codegen/reversewrapper.py:
Updated codegenerator to current pygtk one.
* gst/gst.defs:
* gst/gst.override:
* gst/gstpad.override:
Update defs for new constructor definition.
* testsuite/test_bin.py:
With new constructors, pygobject will try to convert the argument to the
proper GType (here a string).
2006-06-09 10:50:21 +00:00
Edward Hervey
6189051361 gst/: Update for API additions.
Original commit message from CVS:
* gst/base.defs:
* gst/gst-0.10.7.ignore:
* gst/gst-types.defs:
* gst/gst.defs:
* gst/gstbase.override:
* gst/libs.defs:
Update for API additions.
* gst/gstmodule.c: (init_gst):
Added new GST_TAG_IMAGE and GST_TAG_PREVIEW_IMAGE
2006-06-09 10:12:16 +00:00
Edward Hervey
20469390bd gst/__init__.py: Make gst-python work on OS without dl.so
Original commit message from CVS:
reviewed by: Edward Hervey <edward@fluendo.com>
* gst/__init__.py:
Make gst-python work on OS without dl.so
Fixes #341799
2006-05-27 12:18:54 +00:00
Edward Hervey
78e97adb23 examples/filesrc.py: Port to 0.10.
Original commit message from CVS:
reviewed by: Edward Hervey <edward@fluendo.com>
* examples/filesrc.py: Port to 0.10.
2006-05-27 12:13:46 +00:00
Edward Hervey
b6866c55bf examples/audio-controller.py: Make it work with 0.10, still had cruft from 0.9
Original commit message from CVS:
* examples/audio-controller.py:
Make it work with 0.10, still had cruft from 0.9
2006-05-27 12:08:08 +00:00
Edward Hervey
01f935c116 Added ignore file for core 0.10.7
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/gst-0.10.7.ignore:
* gst/gstversion.override.in:
Added ignore file for core 0.10.7
* gst/base.defs:
Added gst_adapter_take_buffer
* gst/gst-0.10.6.ignore:
Filed API addition for 0.10.6
* gst/gst-types.defs:
Added GstTypeFind pointer definition
* gst/gst.defs:
* gst/gst.override:
Added fake function gst_type_find_new() to create a GstTypeFind that can
be used in all typefinding function.
GstTypeFind *
gst_type_find_new(data, peekfunction, suggestfunction [, getlenghtfunction])
2006-05-19 08:48:22 +00:00
Edward Hervey
f92b4c9ef1 Update for API changes.
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/gst-0.10.6.ignore:
* gst/gst.defs:
* gst/gstversion.override.in:
Update for API changes.
Added ignore files for core 0.10.6 API additions.
2006-05-09 14:24:02 +00:00
Edward Hervey
b6d166bd48 gst/gst.override: Reverting previous patches for conditional ignore.
Original commit message from CVS:
* gst/gst.override:
Reverting previous patches for conditional ignore.
It can't be done from within override files.
The only one left is the python gst_debug_log function
which will do nothing #ifdef GST_DISABLE_GST_DEBUG.
Also removed the conditional ignore for API changes since it didn't
have any effect either.
2006-05-09 14:00:10 +00:00
Edward Hervey
ac087e445e gst/gst.override: Better conditional ignore for types and methods.
Original commit message from CVS:
* gst/gst.override:
Better conditional ignore for types and methods.
2006-05-09 13:36:51 +00:00
Edward Hervey
b01b9197c7 codegen/: Added code to ignore type and the function/methods/classes that use them.
Original commit message from CVS:
* codegen/codegen.py:
* codegen/override.py:
Added code to ignore type and the function/methods/classes that use
them.
* gst/gst.override:
ignore methods/classes/types depending on how GStreamer core was built:
_ GST_DISABLE_GST_DEBUG
_ GST_DISABLE_LOADSAVE
_ GST_DISABLE_PARSE
2006-05-09 13:13:48 +00:00
Edward Hervey
6dc2d5f8fe testsuite/python.supp: Added suppressions for FC5 64 bit
Original commit message from CVS:
* testsuite/python.supp:
Added suppressions for FC5 64 bit
2006-05-09 10:25:17 +00:00
Edward Hervey
8fb6dbf1dd autogen.sh: libtoolize on Darwin/MacOSX is called glibtoolize
Original commit message from CVS:
* autogen.sh: (CONFIGURE_DEF_OPT):
libtoolize on Darwin/MacOSX is called glibtoolize
2006-05-08 11:59:56 +00:00
Andy Wingo
3aab962a4c examples/remuxer.py (PlayerWindow.update_scale_cb): Fix a race condition getting the initial cutin time via inserting...
Original commit message from CVS:
2006-05-05  Andy Wingo  <wingo@pobox.com>

* examples/remuxer.py (PlayerWindow.update_scale_cb): Fix a race
condition getting the initial cutin time via inserting whitespace.
(all over): UI fixes to make Mike happy.
2006-05-05 13:30:01 +00:00
Andy Wingo
bf5fe2593e examples/remuxer.py: Updates! Nothing gstreamery, it's all ui, so I won't bother you with the details.
Original commit message from CVS:
2006-05-05  Andy Wingo  <wingo@pobox.com>

* examples/remuxer.py: Updates! Nothing gstreamery, it's all ui,
so I won't bother you with the details.
2006-05-05 11:00:44 +00:00
Edward Hervey
4ec7c5c5d8 examples/gstfile.py: Threaded application, we NEED gobject.threads_init().
Original commit message from CVS:
* examples/gstfile.py:
Threaded application, we NEED gobject.threads_init().
This should finally gets rid of the crashes when used on single files.
* gst/extend/discoverer.py:
Re-order the imports.
2006-04-29 16:59:16 +00:00
Edward Hervey
0d89737bf7 gst/arg-types.py: Caps used as arguments of virtual methods should keep their initial refcount when calling the pytho...
Original commit message from CVS:
* gst/arg-types.py:
Caps used as arguments of virtual methods should keep their initial
refcount when calling the python methods.
This is similar to the patch done for GstMiniObjects.
* gst/gstbase.override:
Adjust the gst.BaseTransform.get_unit_size() virtual method for above
fix.
2006-04-28 17:35:26 +00:00
Edward Hervey
c2f10c765f gst/gstbase.override: gst.BaseTransform.get_unit_size() virtual method override.
Original commit message from CVS:
reviewed by: Edward Hervey  <edward@fluendo.com>
* gst/gstbase.override:
gst.BaseTransform.get_unit_size() virtual method override.
Closes #339248
2006-04-28 15:23:52 +00:00
Edward Hervey
31033595e4 gst/arg-types.py: GstMiniObject used as virtual methods parameters should be unreffed before calling the method and t...
Original commit message from CVS:
* gst/arg-types.py:
GstMiniObject used as virtual methods parameters should be unreffed
before calling the method and the ref-ed.
Added Params and Returns for const-gchar*, GType and gulong so the
code generator can generate more virtual methods handlers/proxys.
* gst/gst-types.defs:
* gst/gst.defs:
* gst/interfaces.defs:
Added vtable and virtual method definition for interfaces so we can properly use virtual
methods from those interfaces in python.
2006-04-28 15:07:41 +00:00
Edward Hervey
726357893f gst/gstmodule.c: Wrap the gstreamer error domains quark.
Original commit message from CVS:
* gst/gstmodule.c: (init_gst):
Wrap the gstreamer error domains quark.
Fixes #339040
2006-04-28 14:54:45 +00:00
Edward Hervey
06033e6279 gst/gstpad.override (pad_block_callback_marshal)
Original commit message from CVS:
* gst/gstpad.override (pad_block_callback_marshal)
(_wrap_gst_pad_set_blocked_async): Fix refcounting problems and
indent.
Fixes #338982
2006-04-28 14:51:52 +00:00
Thomas Vander Stichele
0eb826e6e5 back to HEAD
Original commit message from CVS:
back to HEAD
2006-04-28 14:07:38 +00:00
Thomas Vander Stichele
9a61ac5af2 releasing 0.10.4
Original commit message from CVS:
releasing 0.10.4
2006-04-28 14:06:21 +00:00
Andy Wingo
ebf47e1442 gst/arg-types.py (GstCapsArg.write_const_param)
Original commit message from CVS:
2006-04-19  Andy Wingo  <wingo@pobox.com>

* gst/arg-types.py (GstCapsArg.write_const_param)
(GstCapsArg.write_param): If there is a default value, initialize
the py_caps variable to NULL. PyArgs_Parse* doesn't touch c
variables if the optional arg isn't there. Fixes #339010.
2006-04-19 12:04:19 +00:00
Andy Wingo
f0a20f8343 examples/remuxer.py (GstPlayer.seek): Don't do accurate seeks, because the output won't be readable without a keyfram...
Original commit message from CVS:
2006-04-19  Andy Wingo  <wingo@pobox.com>

* examples/remuxer.py (GstPlayer.seek): Don't do accurate seeks,
because the output won't be readable without a keyframe anyway.
2006-04-19 11:58:14 +00:00
Andy Wingo
4a4637e756 examples/remuxer.py: Another code dump. I know it breaks the freeze but it's just a wee example :)
Original commit message from CVS:
2006-04-19  Andy Wingo  <wingo@pobox.com>

* examples/remuxer.py: Another code dump. I know it breaks the
freeze but it's just a wee example :)
2006-04-19 08:50:48 +00:00
Edward Hervey
e7c477c793 gst/gsttaglist.override: Return tag value if present more than once (instead of exactly once).
Original commit message from CVS:
* gst/gsttaglist.override: (tag_foreach_func_list):
Return tag value if present more than once (instead of exactly once).
Fixes #337876
2006-04-10 14:47:19 +00:00
Edward Hervey
b07c954fb9 codegen/argtypes.py: Update from upstream codegen for UInt argtype.
Original commit message from CVS:
* codegen/argtypes.py:
Update from upstream codegen for UInt argtype.
* gst/gst-types.defs:
Added GstIndexEntry boxed type.
* gst/gstbase.override:
Wrapped gst.BaseSrc::get_times() and gst.PushSrc::create() virtual
methods.
gst.BaseSrc and gst.PushSrc virtual methods are now completely wrapped.
2006-04-10 09:21:09 +00:00
Stefan Kost
3d27036e7a testsuite/test-object.h: Fix broken GObject macros
Original commit message from CVS:
* testsuite/test-object.h:
Fix broken GObject macros
2006-04-08 18:46:44 +00:00
Andy Wingo
6bdf0cec7b examples/remuxer.py: Code dump, work in progress...
Original commit message from CVS:
2006-04-07  Andy Wingo  <wingo@pobox.com>

* examples/remuxer.py: Code dump, work in progress...
2006-04-07 18:33:35 +00:00
Edward Hervey
2afe4a0c32 testsuite/test_ghostpad.py: more assertions to figure out an speed issue.
Original commit message from CVS:
* testsuite/test_ghostpad.py:
more assertions to figure out an speed issue.
2006-04-07 17:58:18 +00:00
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
Edward Hervey
51352b1a2e Makefile.am: make check-valgrind calls make valgrind in the testsuite directory.
Original commit message from CVS:
* Makefile.am:
make check-valgrind calls make valgrind in the testsuite directory.
* testsuite/Makefile.am:
prepend $(top_srcdir) to PYTHONPATH for all tests so it uses the built
library and not the installed one.
* testsuite/python.supp:
Added suppressions discovered on x86/gentoo.
2006-04-07 15:41:00 +00:00
Andy Wingo
182840a50d gst/gstelement.override (_wrap_gst_element_link): Allow errors parsing the optional filter caps to propagate up.
Original commit message from CVS:
2006-04-07  Andy Wingo  <wingo@pobox.com>

* gst/gstelement.override (_wrap_gst_element_link): Allow errors
parsing the optional filter caps to propagate up.
2006-04-07 14:54:49 +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
Edward Hervey
5b30271cd3 testsuite/test_message.py: GstBus is flushing in NULL, so we need to set the pipeline to READY in order to receive th...
Original commit message from CVS:
* testsuite/test_message.py:
GstBus is flushing in NULL, so we need to set the pipeline to READY in
order to receive the messages in the bus watch.
2006-04-05 17:05:43 +00:00
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
Andy Wingo
fda4bddb99 gst/gstpad.override (_wrap_gst_pad_set_blocked_async): PyObject_IsTrue, not PyBool_Check. Grr.
Original commit message from CVS:
2006-04-05  Andy Wingo  <wingo@pobox.com>

* gst/gstpad.override (_wrap_gst_pad_set_blocked_async):
PyObject_IsTrue, not PyBool_Check. Grr.
2006-04-05 08:37:32 +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
Thomas Vander Stichele
f77edff104 configure.ac: use AS_VERSION and AS_NANO
Original commit message from CVS:

* configure.ac:
use AS_VERSION and AS_NANO
2006-04-01 10:07:07 +00:00
Andy Wingo
a94b05add5 examples/remuxer.py: Example GUI for a remuxer, unfinished -- dropping it here while I hack on it. Based on player.py.
Original commit message from CVS:
2006-03-31  Andy Wingo  <wingo@pobox.com>

* examples/remuxer.py: Example GUI for a remuxer, unfinished --
dropping it here while I hack on it. Based on player.py.

* examples/Makefile.am (examples_DATA): Add remuxer.py, reorder
list.
2006-03-31 17:12:50 +00:00
David I. Lehn
7fb1ff1253 configure.ac: Better empty string test fix for "Fixes to how we figure out what API to ignore"
Original commit message from CVS:
* configure.ac:
Better empty string test fix for "Fixes to how we figure out what API
to ignore"
2006-03-30 03:46:56 +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
Jan Schmidt
e272ffe3bb configure.ac: releasing 0.10.3, "Maybe not today. Maybe not tomorrow, but soon..."
Original commit message from CVS:
=== release 0.10.3 ===

2006-03-21  Jan Schmidt <thaytan@mad.scientist.com>

* configure.ac:
releasing 0.10.3, "Maybe not today. Maybe not tomorrow, but soon..."
2006-03-21 21:48:08 +00:00
Jan Schmidt
302cdc4a1d testsuite/: Another attempt at making the tests deterministic on the buildbots
Original commit message from CVS:
* testsuite/test_ghostpad.py:
* testsuite/test_pad.py:
Another attempt at making the tests deterministic on the buildbots
2006-03-21 14:01:07 +00:00
Jan Schmidt
b327222179 configure.ac: pre-release 0.10.2.2
Original commit message from CVS:
2006-03-20  Jan Schmidt <thaytan@mad.scientist.com>

* configure.ac:
pre-release 0.10.2.2
2006-03-21 00:14:38 +00:00
Jan Schmidt
883b41a9ff testsuite/test_ghostpad.py: Add while loop in teardown to wait for the pipeline state to hit NULL. Hopefully this wil...
Original commit message from CVS:
* testsuite/test_ghostpad.py:
Add while loop in teardown to wait for the pipeline state
to hit NULL. Hopefully this will ensure the refcount has always hit 1.
2006-03-20 19:08:34 +00:00
Edward Hervey
e97416a785 configure.ac: Only require GStreamer core >= 0.10.2
Original commit message from CVS:
* configure.ac:
Only require GStreamer core >= 0.10.2
Detect version of core the bindings are being compiled against and
write gst/gstversion.override file with eventual API additions that
should be ignored.
* gst/Makefile.am:
* gst/base.defs:
Added gst_base_sync_[set|get]_[sync|max_lateness]() and
gst_type_find_helper_get_range() definitions
* gst/gst-0.10.3.ignore:
API added in gstreamer core 0.10.3
* gst/gst-0.10.4.ignore:
API added in gstreamer core 0.10.4
* gst/gst.override:
Include gstversion.override.
* gst/gstversion.override.in:
Magic file for API additions to ignore.
2006-03-14 12:56:46 +00:00
Edward Hervey
53e67e611a codegen/: New --extendpath option for codegenerator so we can add extra path to search for included override files.
Original commit message from CVS:
* codegen/codegen.py:
* codegen/override.py:
New --extendpath option for codegenerator so we can add
extra path to search for included override files.
2006-03-14 12:25:22 +00:00
Edward Hervey
282abc30ff gst/: Added base elements override file.
Original commit message from CVS:
* gst/Makefile.am:
* gst/gst.override:
* gst/gstbase.override:
Added base elements override file.
* gst/gstpad.override:
Added override for gst_pad_alloc_buffer_and_set_caps
2006-03-13 11:19:10 +00:00
Edward Hervey
ecc0f5d932 gst/gst.override: Commited a bit too much :)
Original commit message from CVS:
* gst/gst.override:
Commited a bit too much :)
2006-03-10 11:28:01 +00:00
Edward Hervey
9c81750346 gst/base.defs: typo fix for gst_type_find_helper()
Original commit message from CVS:
* gst/base.defs:
typo fix for gst_type_find_helper()
Added new API : gst_type_find_helper_for_buffer()
* gst/gst.override:
override for gst.type_find_helper_for_buffer()
2006-03-10 11:22:31 +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
455c2109fa gst/arg-types.py: Add ReturnType and Parameter for GstCaps.
Original commit message from CVS:
* gst/arg-types.py:
Add ReturnType and Parameter for GstCaps.
This allows the codegenerator to wrap properly more virtual proxies.
2006-03-07 19:44:35 +00:00
Edward Hervey
04d31802b9 gst/base.defs: Update for new check_get_range virtual method in GstBaseSrc
Original commit message from CVS:
* gst/base.defs:
Update for new check_get_range virtual method in GstBaseSrc
2006-03-07 19:08:43 +00:00
Michael Smith
d64761af50 gst/: Don't leak PyObjects wrapping GValues when indexing into a
Original commit message from CVS:
* gst/gststructure.override:
* gst/gsttaglist.override:
Don't leak PyObjects wrapping GValues when indexing into a
GStStructure. Also fix a copy/paste identical bug in taglists.
2006-03-06 16:24:53 +00:00
Edward Hervey
9fdbc6b987 gst/pygstminiobject.h: Some crack distributions do weirdo stuff with PYGIL_API_IS_BUGGY.
Original commit message from CVS:
* gst/pygstminiobject.h:
Some crack distributions do weirdo stuff with PYGIL_API_IS_BUGGY.
Let's keep our own detection.
Closes #333055
2006-03-02 09:40:13 +00:00
Jan Schmidt
af5d1afeba pygst.py.in: Fix a silly logic inversion typo
Original commit message from CVS:
* pygst.py.in:
Fix a silly logic inversion typo
2006-02-28 00:17:45 +00:00
Edward Hervey
18136f0905 pygst.py.in: use 'raise StandardError' instead of 'assert' so that compiled code raise a noticeable exception.
Original commit message from CVS:
* pygst.py.in:
use 'raise StandardError' instead of 'assert' so that compiled code
raise a noticeable exception.
Closes #332586
2006-02-27 16:22:10 +00:00
Edward Hervey
37e88dd9f6 gst/gstmodule.c: gst.gst_version uses the result of gst_version() rather than use the GST_VERSION_* hardcoded values.
Original commit message from CVS:
reviewed by: Edward Hervey  <edward@fluendo.com>
* gst/gstmodule.c: (init_gst):
gst.gst_version uses the result of gst_version() rather than use
the GST_VERSION_* hardcoded values.
Closes #331616
2006-02-22 10:16:33 +00:00
Edward Hervey
54686622a1 examples/vumeter.py: In fact it wasn't an application message, but an element message :)
Original commit message from CVS:
* examples/vumeter.py:
In fact it wasn't an application message, but an element message :)
2006-02-20 18:07:59 +00:00
Zaheer Abbas Merali
a73fac4769 fix vumeter example
Original commit message from CVS:
fix vumeter example
2006-02-20 16:58:14 +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
Andy Wingo
44a2c63fc6 examples/play.py (GstPlayer.query_position)
Original commit message from CVS:
2006-02-10  Andy Wingo  <wingo@pobox.com>

* examples/play.py (GstPlayer.query_position)
(PlayerWindow.update_scale_cb): Only return position, duration
from query_position -- fixes a bugaboo.
(main): Add some input validation.

* examples/pipeline-tester (data): Add a pipeline to test software
scaling.
2006-02-10 10:53:22 +00:00
Edward Hervey
e11b1fcafa gst/: Remove deprecated code dating back from 0.8 era.
Original commit message from CVS:
* gst/gst.override:
* gst/gstmodule.c: (python_do_pending_calls):
Remove deprecated code dating back from 0.8 era.
2006-02-07 18:54:52 +00:00
Andy Wingo
fd727fd969 codegen/argtypes.py (UInt64Arg.write_param): Parse long arguments using ParseTuple and friends; allows ints to passed...
Original commit message from CVS:
2006-02-06  Andy Wingo  <wingo@pobox.com>

* codegen/argtypes.py (UInt64Arg.write_param): Parse long
arguments using ParseTuple and friends; allows ints to passed for
longs as a side benefit.
2006-02-06 16:24:23 +00:00
Edward Hervey
b92ae45a82 gst/gst.override: (gst.TIME_ARGS) return "CLOCK_TIME_NONE" for invalid times instead of outputing gibberish value.
Original commit message from CVS:
* gst/gst.override:
(gst.TIME_ARGS) return "CLOCK_TIME_NONE" for invalid times instead of
outputing gibberish value.
2006-02-02 16:30:01 +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
a21b83f5f5 testsuite/test_event.py: Properly use tempfile
Original commit message from CVS:
* testsuite/test_event.py:
Properly use tempfile
2006-02-01 16:37:41 +00:00
Edward Hervey
0ce8abe73d gst/gst.defs: When using gst.Element.send_event() and gst.Pad.send_event() we keep a refcount on the sent event.
Original commit message from CVS:
* gst/gst.defs:
When using gst.Element.send_event() and gst.Pad.send_event() we keep
a refcount on the sent event.
* testsuite/test_event.py:
Uncomment test to prove above fix
2006-02-01 14:19:55 +00:00
Thomas Vander Stichele
d763780e7f testsuite/test_event.py: add a test case for autoplugging behaviour: create a source, connect probes, store new-segme...
Original commit message from CVS:

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

* testsuite/test_element.py:
add another link test
2006-02-01 11:14:20 +00:00
Edward Hervey
b06a9be61e Link against Gst Data protocol libraries.
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
Link against Gst Data protocol libraries.
* gst/__init__.py:
Restore dlopenflags after importing gst.
Closes #329110
2006-01-30 12:57:02 +00:00
Thomas Vander Stichele
75e8d867cf releasing 0.10.2
Original commit message from CVS:
releasing 0.10.2
2006-01-16 20:59:29 +00:00
Thomas Vander Stichele
c4d718a991 prerelease
Original commit message from CVS:
prerelease
2006-01-14 22:59:52 +00:00
Edward Hervey
f75b8e2494 gst/gstlibs.override: GstController : don't use values that are now in non-public API.
Original commit message from CVS:
* gst/gstlibs.override:
GstController : don't use values that are now in non-public API.
2006-01-13 17:40:09 +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
112f72dabc gst/gststructure.override: Properly check for gstvalue data types. This makes it possible to set fields with fractions.
Original commit message from CVS:
* gst/gststructure.override: (_wrap_gst_structure_set_value):
Properly check for gstvalue data types. This makes it possible to
set fields with fractions.
* testsuite/test_caps.py:
* testsuite/test_struct.py:
Test for above modifications
2006-01-08 12:26:35 +00:00
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