Commit graph

61 commits

Author SHA1 Message Date
Edward Hervey
60961d9b93 gst/: Let's split up gst.override,
Original commit message from CVS:
* gst/Makefile.am:
* gst/gst.override:
* gst/gsttaglist.override:
* gst/gstobject.override:
Let's split up gst.override,
Added gsttaglist.override and gstobject.override
* gst/arg-types.py:
* gst/gst-argtypes.c:
Cleanup, removed deprecated GstData related functions
* gst/gst-extrafuncs.defs:
* gst/gst.defs:
Moved debug functions to gst-extrafuncs.defs
2005-09-28 14:34:52 +00:00
Thomas Vander Stichele
d1d42bd770 gst/gst.defs: parse_launch also owns the return ref
Original commit message from CVS:

* gst/gst.defs:
parse_launch also owns the return ref
* gst/gstbin.override:
fix a leak in get_by_name()
* testsuite/common.py:
loop when garbage collecting; necessary when deleting, say,
a pipeline, that contains elements, to ensure the elements
also get collected
* testsuite/test_element.py:
* testsuite/test_pipeline.py:
test for garbage collection
2005-09-28 14:20:03 +00:00
Edward Hervey
1bc63d73b9 codegen/argtypes.py: Proper handling of 'caller-owns-return' for miniobjects
Original commit message from CVS:
* codegen/argtypes.py:
Proper handling of 'caller-owns-return' for miniobjects
* gst/gst-types.defs:
Updating parenting of classes,
added/removed/updated flags&enums
* gst/gst.defs:
Updated to current core cvs,
Added 'caller-owns-return' properties for functions/methods that require
it
* gst/gst.override:
Don't make *_[un]ref() accessible
* gst/gstbuffer.override:
* gst/gstevent.override:
* gst/gstmessage.override:
* gst/gstquery.override:
Removed hack-ish wrappers since codegenerator handles
'caller-owns-return' methods/functions
* gst/gstmodule.c: (sink_gstobject), (init_gst):
Re-enabled sink function
* gst/libs.defs:
Updated to current core cvs
Removed Adapter
* gst/pygstminiobject.c:
* gst/pygstminiobject.h:
removed _new_noref() hack
2005-09-28 10:58:50 +00:00
Thomas Vander Stichele
f688b2ee8f update for API changes
Original commit message from CVS:
update for API changes
2005-09-26 16:53:04 +00:00
Thomas Vander Stichele
cfdc81b592 gst/gst.*: add another registry method
Original commit message from CVS:

* gst/gst.defs:
* gst/gst.override:
add another registry method
* testsuite/Makefile.am:
add check-verbose
* testsuite/runtests.py:
check for VERBOSE env var
* testsuite/test_pad.py:
refactor a test and add one more for probes
2005-09-23 15:37:40 +00:00
Andy Wingo
14856cf85c gst/gst.defs: Update for probe removal api gst/gstpad.override (_wrap_gst_pad_remove_data_probe) (_wrap_gst_pad_remov...
Original commit message from CVS:
2005-09-21  Andy Wingo  <wingo@pobox.com>

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

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

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

* gst/gst-types.defs:
* gst/gst.defs: Update for registry/plugin/pluginfeature API changes.
2005-09-15 11:58:13 +00:00
Thomas Vander Stichele
9aa8bb0b72 wrap state_change_async and show that it works
Original commit message from CVS:
wrap state_change_async and show that it works
2005-09-12 18:19:08 +00:00
Thomas Vander Stichele
4132069a83 add debug methods to gst.Object
Original commit message from CVS:
add debug methods to gst.Object
2005-09-08 14:08:32 +00:00
Thomas Vander Stichele
4babdda09c gst/gst.defs: add gst.ghost_pad_new_notarget
Original commit message from CVS:

* gst/gst.defs:
add gst.ghost_pad_new_notarget
* gst/gstpad.override:
change wrap_gst_pad_new a little and add logging
* testsuite/test_pad.py:
add tests for constructors of gst.Pad
2005-09-08 13:34:29 +00:00
Thomas Vander Stichele
9ddd53563d wrap gst.Plugin.get_source
Original commit message from CVS:
wrap gst.Plugin.get_source
2005-09-03 17:06:52 +00:00
Andy Wingo
52d5e11fa7 gst/: Update for core changes.
Original commit message from CVS:
2005-09-02  Andy Wingo  <wingo@pobox.com>

* gst/gstelement.override:
* gst/gstmessage.override:
* gst/gst-types.defs (State, StateChangeReturn, StateChange):
* gst/gst.defs (change_state): Update for core changes.
2005-09-02 16:21:45 +00:00
Thomas Vander Stichele
51a7c6de63 make gst.event_new_* available
Original commit message from CVS:
make gst.event_new_* available
2005-09-01 21:46:11 +00:00
Thomas Vander Stichele
b9d59e3e99 gst/__init__.py: del ltihooks properly; fixes loading of testhelper in testsuite
Original commit message from CVS:
* gst/__init__.py:
del ltihooks properly; fixes loading of testhelper in testsuite
* gst/gst.defs:
wrap link_filtered
2005-08-31 15:28:37 +00:00
Andy Wingo
ef32a35246 gst/gst.defs (watch_for_state_change): Added wrapper from CVS.
Original commit message from CVS:
2005-08-17  Andy Wingo  <wingo@pobox.com>

* gst/gst.defs (watch_for_state_change): Added wrapper from CVS.
2005-08-17 16:41:23 +00:00
Andy Wingo
e3c70bcaeb /tmp/cvs3vKuoV
Original commit message from CVS:
/tmp/cvs3vKuoV
2005-08-16 16:47:45 +00:00
Edward Hervey
139163d89e gst/: We now have debugging in gst-python ;) gst.[log|debug|info|warning|error]()
Original commit message from CVS:
* gst/gst.defs:
* gst/gst.override:
* gst/gstmodule.c:
We now have debugging in gst-python ;)
gst.[log|debug|info|warning|error]()
2005-08-04 10:44:16 +00:00
Edward Hervey
0f04024f5c bindings now wrap the gstreamer extra libs (adapter, controller,...)
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/gstlibs.override:
* gst/gst.defs:
* gst/libs.defs:
* gst/gst.override:
* gst/gstlibs.override:
bindings now wrap the gstreamer extra libs (adapter, controller,...)
2005-08-03 16:54:57 +00:00
Edward Hervey
32dbfea730 Remove old documentation system
Original commit message from CVS:
* README-docs:
* configure.ac:
* Makefile.am:
Remove old documentation system
* gst/gst.defs:
* gst/gst-types.defs:
Updating defs files
* gst/gst.override:
Wrapped gst_flow_get_name() for const-gchar *
* gst/gstelement.override:
I really should test everything on 32 AND 64 bits systems...
* gst/gstevent.override:
Updated gst_event_new_seek() wrapper
Added gst_event_get_structure() wrapper
* gst/gstmodule.c:
Changed definition of gst.CLOCK_TIME_NONE to wrap GST_CLOCK_TIME_NONE
* testsuite/testhelpermodule.c:
gst_event_new --> gst_event_new_custom
2005-08-01 09:59:55 +00:00
Edward Hervey
a7a9df2c86 gst/gst.defs: I'm bored with writing "Updating defs file", so I'll just write a poem by Charles Baudelaire, "L'invita...
Original commit message from CVS:
* gst/gst.defs:
I'm bored with writing "Updating defs file", so I'll just write a poem
by Charles Baudelaire, "L'invitation au voyage" :
Mon enfant, ma soeur,
Songe  la douceur
D'aller l-bas vivre ensemble !
Aimer  loisir,
Aimer et mourir
Au pays qui te ressemble !
Les soleils mouills
De ces ciels brouills
Pour mon esprit ont les charmes
Si mystrieux
De tes tratres yeux,
Brillant  travers leurs larmes.
The rest at the next defs update :)
2005-07-21 11:14:46 +00:00
Edward Hervey
cb954fd6d9 gst/pygstvalue.c: FixedList -> Array
Original commit message from CVS:
* gst/pygstvalue.c:
FixedList -> Array
* gst/gst.defs:
Updating defs file.
2005-07-20 18:06:10 +00:00
Edward Hervey
dc1bb839cd gst/gst.defs: Updating defs file even more :)
Original commit message from CVS:
* gst/gst.defs: Updating defs file even more :)
2005-07-18 17:12:31 +00:00
Edward Hervey
09382469a0 gst/gst.defs: Updating defs file
Original commit message from CVS:
* gst/gst.defs: Updating defs file
2005-07-18 16:40:41 +00:00
Edward Hervey
ae75cbd54b gst/: Added GError wrapping,
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
Added GError wrapping,
Removed data field from Buffer,
Added virtual methods to object
Updated to latest API
* gst/gst.override:
wrapped gst_plugin_get_feature_list(), gst_uri_handler_get_protocols(),
gst_registry_pool_list()
* gst/gstbuffer.override:
gst.Buffer() works
get/setters fixed
wrapped gst_buffer_stamp()
* gst/gstbus.override:
wrapped gst_bus_set_sync_handler() and gst_bus_add_watch()
* gst/gstelement.override:
wrapped gst_element_send_event(), gst_element_factory_get_pad_templates()
gst_element_query_convert(), gst_element_get_query_types()
* gst/gstevent.override:
wrapped gst_event_discont_get_value()
* gst/gstmessage.override:
wrapped gst_message_parse_state_changed(), gst_message_parse_error(),
gst_message_parse_warning(), gst_message_parse_tag()
* gst/gstmodule.c:
Added registration of new fundamental type with pygtk
* gst/gstpad.override:
wrapped gst_pad_query(), gst_pad_[add|remove]_[data|event|buffer]_probe(),
gst_pad_query_position(), gst_pad_query_convert()
* gst/gstquery.override:
wrapped gst_query_parse_position(), gst_query_parse_convert(),
gst_query_parse_seeking_query(), gst_query_parse_seeking_reponse()
* gst/pygstminiobject.c:
fixes
* gst/Makefile.am:
added gstbus.override, gstmessage.override, gstquery.override
* testsuite/test_buffer.py:
* testsuite/test_element.py:
* testsuite/test_event.py:
* testsuite/test_pipeline.py:
Updating testsuites
2005-07-12 09:45:58 +00:00
Edward Hervey
bc47432fc8 gst/: Proper registration of PyGstMiniObject classes in order to be able to create Event, Messages, Buffers from python.
Original commit message from CVS:
* gst/gstmodule.c:
* gst/pygstminiobject.c:
Proper registration of PyGstMiniObject classes in order to be able to
create Event, Messages, Buffers from python.
More corrections on miniobject's refcounting
* gst/gstevent.override:
* gst/gstbuffer.override:
Removed overloaded overrides
* gst/gst.defs:
updated
2005-07-05 15:07:20 +00:00
Edward Hervey
fa5105c9f6 gst/gst.*: Probes are gone...
Original commit message from CVS:
* gst/gst.defs:
* gst/gst.override:
Probes are gone...
* Makefile.am:
* configure.ac:
* gst/Makefile.am:
* pygst.py.in:
Modifications to have parallel-installable gst-python
Works more or less in the same way as pygtk:
import pygst
pygst.require('0.9')
import gst
2005-07-01 16:32:09 +00:00
Edward Hervey
835f29e2bb codegen/codegen.py: let's not forget to wrap the MiniObject :)
Original commit message from CVS:
* codegen/codegen.py: (GstMiniObjectWrapper.constructor_tmpl):
let's not forget to wrap the MiniObject :)
* gst/gst-types.defs:
* gst/gst.defs:
Always keep up to date with the core
* gst/gstelement.override:
override for gst_element_query_position
* gst/pygstminiobject.c:
* gst/pygstminiobject.h:
* gst/gst.override:
PyGstMiniObject now properly wrap GstMiniObject and are referenced in a
global hash table
2005-06-28 16:13:53 +00:00
Edward Hervey
685c434a03 codegen/: Backport pygtk 2.6.2 codegen
Original commit message from CVS:
* codegen/argtypes.py:
* codegen/codegen.py:
* codegen/definitions.py:
* codegen/defsparser.py:
* codegen/h2def.py:
* codegen/mergedefs.py:
* codegen/reversewrapper.py:
Backport pygtk 2.6.2 codegen
* gst/gst-types.defs:
Added fields for Buffer, Event, Message and Query
Added pre-roll for enum ElementStateReturn
* gst/gst.defs:
Added (define-method for gst_structure_nth_field_name()
* gst/gstelement.override:
Added override for gst_element_get_state
* gst/gstcaps.override:
re-enabled structure functions
2005-06-26 13:59:34 +00:00
Edward Hervey
038f11fafb codegen/: Updated codegen to support miniobject
Original commit message from CVS:
* codegen/argtypes.py:
* codegen/codegen.py:
* codegen/definitions.py:
* codegen/defsparser.py:
* codegen/docgen.py:
Updated codegen to support miniobject
* gst/Makefile.am:
Use the included (and modified) codegen for code generation.
* gst/pygstminiobject.c:
* gst/pygstminiobject.h:
* gst/pygstminiobject-private.h:
New GstMiniObject inspired from pygobject.[ch] code
* gst/common.h:
* gst/gst-types.defs:
* gst/gst.override:
* gst/gstbuffer.override:
* gst/gstcaps.override:
* gst/gstmodule.c:
* gst/gstpad.override:
Modifications to support MiniObject
* gst/gst.defs:
Allow null second parameter for ElementFactory.create()
and gst.element_factory_make()
2005-06-26 12:35:07 +00:00
Edward Hervey
d33dd2f565 gst/: commented-out deprecated code, compiles at last, and works for pipeline creation and state change
Original commit message from CVS:
* gst/arg-types.py:
* gst/common.h:
* gst/gst-argtypes.c:
* gst/gst-types.defs:
* gst/gst.defs:
* gst/gst.override:
* gst/gstelement.override:
* gst/gstmodule.c:
* gst/gstpad.override:
* gst/gststructure.override:
commented-out deprecated code,
compiles at last, and works for pipeline creation and state change
* configure.ac:
updated requirement of GStream (0.9.0), pygtk (2.6.1)
bumped version number (0.9.0.1)
2005-06-20 21:39:34 +00:00
Edward Hervey
c68afb5f53 Backport from 0.8 branch and added new .defs file from GStreamer 0.9
Original commit message from CVS:
Backport from 0.8 branch and added new .defs file from GStreamer 0.9
2005-06-17 10:59:47 +00:00
Thomas Vander Stichele
dd901080d7 wrap gst_plugin_get_version so it returns a tuple
Original commit message from CVS:
wrap gst_plugin_get_version so it returns a tuple
2005-04-12 16:29:49 +00:00
Johan Dahlin
e6eb16b03b gst/gst.defs (element_factory_make): Caller owns return, fixes leak
Original commit message from CVS:
* gst/gst.defs (element_factory_make): Caller owns return, fixes leak
(get_caps): Ditto

* gst/gst.override (_wrap_gst_tag_list_get): Leak fix
(_wrap_gst_tag_list_subscript): Ditto

Reviewed by: Johan Dahlin <johan@gnome.org>
2005-03-15 13:20:08 +00:00
Thomas Vander Stichele
4fc152af94 probe functions
Original commit message from CVS:
probe functions
2005-01-12 10:15:18 +00:00
Martin Soto
ca5445fcbe gst/gst.override (_wrap_gst_event_new_any) (_wrap_gst_event_new_discontinuous) (_wrap_gst_event_any_get_structure)
Original commit message from CVS:
2004-11-27  Martin Soto  <martinsoto@users.sourceforge.net>

* gst/gst.override (_wrap_gst_event_new_any)
(_wrap_gst_event_new_discontinuous)
(_wrap_gst_event_any_get_structure)
(_wrap_gst_registry_pool_plugin_list):
* gst/gst.defs (get_data, event_new_any, any_get_structure):
Added basic support for "ANY" (navigation) events.
Added basic support for discont events (only one value for now,
we are limited by the GStreamer API).
Now it is possible to access data in a GstBuffer as a string
Added a definition for method get_data of GstBuffer.

* gst/gst.override (_wrap_gst_structure_set_value): Add an
optional parameter to allow selection of the right G_TYPE. If no
type is specified, make an educated guess.
2004-11-27 09:41:17 +00:00
Zaheer Abbas Merali
2425cf1e64 2004-10-11 set REAL_NAME environment variable <set EMAIL_ADDRESS environment variable>
Original commit message from CVS:
2004-10-11  set REAL_NAME environment variable  <set EMAIL_ADDRESS environment variable>

* gst/gst.defs:
* gst/gst.override:
Fixes element_unlink_many and adds a set_buffer_data method to GstBuffer
Fixes bug #154451 and #154692
2004-10-11 09:45:40 +00:00
Johan Dahlin
1a232d7366 gst/:
Original commit message from CVS:
* gst/arg-types.py:
* gst/gst.defs:
* gst/gst.override:

GstXML support, based on patch by poelzi.
2004-10-11 09:24:15 +00:00
Johan Dahlin
02f72cd028 gst/gst.override (_wrap_gst_structure_ass_subscript): Some more fixes, doesn't quite work as it should yet though.x
Original commit message from CVS:
* gst/gst.override (_wrap_gst_structure_ass_subscript): Some more
fixes, doesn't quite work as it should yet though.x
(_wrap_gst_caps_tp_str): Plug leak

* gst/interfaces.defs (Mixer, MixerTrack): Add mixer fields here.

* testsuite/element.py (QueueTest.testConstruct): Some basic test,
one disabled for the moment
2004-08-30 10:42:36 +00:00
Thomas Vander Stichele
04d47f4be2 add constructor for caps
Original commit message from CVS:
add constructor for caps
2004-08-06 18:49:53 +00:00
Johan Dahlin
607bb26a14 gst/gst.override (_wrap_gst_structure_from_string): Impl.
Original commit message from CVS:
* gst/gst.override (_wrap_gst_structure_from_string): Impl.
(_wrap_gst_tag_list_has_key): Impl.
(_wrap_gst_caps_get_structure): Don't copy or free me

* testsuite/struct.py (StructureTest.testStructureChange): Enable
some tests.
Improve tests

* gst/gst.override (_wrap_gst_structure_ass_subscript): Impl
2004-08-06 18:14:30 +00:00
Thomas Vander Stichele
b18efd0d22 allow no name for thread and pipeline
Original commit message from CVS:
allow no name for thread and pipeline
2004-08-02 17:33:54 +00:00
Johan Dahlin
c0d4251e20 testsuite/interface.py (Availability.testXOverlay): Extend to test method calling on interfaces
Original commit message from CVS:
* testsuite/interface.py (Availability.testXOverlay): Extend to
test method calling on interfaces

* testsuite/common.py: call pygtk.require first

* gst/gstbin.override (_wrap_gst_bin_get_by_name): Add a
keyword argument recurse and remove
_wrap_gst_bin_get_by_name_recurse_up.

* gst/gst.override (_wrap_gst_element_get_pad_list): Split out bin
functions to ...

* gst/gstbin.override: .. this file

* gst/gst.defs (bin_new): allow NULL for first argument.
(child_state_change): Remove, it's private.
2004-05-24 10:30:05 +00:00
Johan Dahlin
ca3eb4296c gst/gst.defs (element_state_get_name): Add.
Original commit message from CVS:
* gst/gst.defs (element_state_get_name): Add.
2004-04-30 15:51:20 +00:00
Johan Dahlin
9e4049710c gst/gst.override (_wrap_gst_element_tp_new): New, just pointing to _wrap_gst_element_factory_make
Original commit message from CVS:
* gst/gst.override (_wrap_gst_element_tp_new): New, just pointing
to _wrap_gst_element_factory_make
(_wrap_gst_element_tp_new): Stub, return 1  so tp_new can be used.

* gst/gst.defs (element_factory_make): Remove is-constructor-of
GstElement.

* codegen/: Remove and use the codegen from pygtk instead

* configure.ac (ACLOCAL): Require 2.3.91 of PyGTK
2004-04-16 11:44:06 +00:00
Johan Dahlin
339261e4e2 gst/gst.defs: Remove unused functions.
Original commit message from CVS:
* gst/gst.defs: Remove unused functions.

* gst/gst.override: Ditto

* gst/__init__.py (devloc): delete dl
2004-03-17 12:27:20 +00:00