Commit graph

218 commits

Author SHA1 Message Date
Edward Hervey
9fd8f61cb1 gst/gstmessage.override: wrapped gst_message_parse_segment_start() and gst_message_parse_segment_done()
Original commit message from CVS:
* gst/gstmessage.override:
wrapped gst_message_parse_segment_start() and
gst_message_parse_segment_done()
* gst/gst.defs:
I'm bored with writing "Updating defs file", so I'll just write a poem
by Charles Baudelaire, "L'invitation au voyage" :
Mon enfant, ma soeur,
Songe à la douceur
D'aller là-bas vivre ensemble !
Aimer à loisir,
Aimer et mourir
Au pays qui te ressemble !
Les soleils mouillés
De ces ciels brouillés
Pour mon esprit ont les charmes
Si mystérieux
De tes traîtres yeux,
Brillant à travers leurs larmes.
The rest at the next defs update :)
2005-07-21 12:03:23 +00:00
Edward Hervey
a7a9df2c86 gst/gst.defs: I'm bored with writing "Updating defs file", so I'll just write a poem by Charles Baudelaire, "L'invita...
Original commit message from CVS:
* gst/gst.defs:
I'm bored with writing "Updating defs file", so I'll just write a poem
by Charles Baudelaire, "L'invitation au voyage" :
Mon enfant, ma soeur,
Songe à la douceur
D'aller là-bas vivre ensemble !
Aimer à loisir,
Aimer et mourir
Au pays qui te ressemble !
Les soleils mouillés
De ces ciels brouillés
Pour mon esprit ont les charmes
Si mystérieux
De tes traîtres yeux,
Brillant à travers leurs larmes.
The rest at the next defs update :)
2005-07-21 11:14:46 +00:00
Edward Hervey
cb954fd6d9 gst/pygstvalue.c: FixedList -> Array
Original commit message from CVS:
* gst/pygstvalue.c:
FixedList -> Array
* gst/gst.defs:
Updating defs file.
2005-07-20 18:06:10 +00:00
Edward Hervey
4d6a998b9d gst/gstpad.override: misc fixes for change in gst_pad_get_parent()
Original commit message from CVS:
* gst/gstpad.override: misc fixes for change in gst_pad_get_parent()
* gst/gst-types.defs:
* gst/gst.defs: Updating defs file even more :)
2005-07-18 17:13:32 +00:00
Edward Hervey
c4d8993ca4 gst/gstpad.override: misc fixes for change in gst_pad_get_parent()
Original commit message from CVS:
* gst/gstpad.override: misc fixes for change in gst_pad_get_parent()
* gst/gst.defs: Updating defs file even more :)
2005-07-18 17:13:04 +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
2d4bae8f2a gst/gst-types.defs: updating to current core for 2 new GstMessageType's
Original commit message from CVS:
* gst/gst-types.defs: (MessageType):
updating to current core for 2 new GstMessageType's
* gst/gstbus.override: (bus_sync_handler),(bus_handler):
properly unref the message python wrapper...
2005-07-13 16:29:06 +00:00
Edward Hervey
816af777c3 gst/gstbus.override: properly unref the message python wrapper...
Original commit message from CVS:
* gst/gstbus.override: (bus_sync_handler),(bus_handler):
properly unref the message python wrapper...
2005-07-13 16:10:24 +00:00
Edward Hervey
19dd2cc030 gst/gstbus.override: Raise an exception if the callback doesn't return anything
Original commit message from CVS:
* gst/gstbus.override: (bus_handler) (bus_sync_handler):
Raise an exception if the callback doesn't return anything
* gst/pygstminiobject.c:
removed the 'ref' and 'unref' methods
2005-07-13 10:05:59 +00:00
Edward Hervey
9b74a9033a gst/gst.override: removed deprecated wrappers (gst_event_new_any*)
Original commit message from CVS:
* gst/gst.override:
removed deprecated wrappers (gst_event_new_any*)
* gst/gstbuffer.override:
* gst/gstquery.override:
* gst/gstmessage.override:
* gst/gstevent.override:
* gst/pygstminiobject.c:
* gst/pygstminiobject.h:
Correct wrapping of functions 'creating' mini-objects
* gst/gstelement.override: (_wrap_gst_element_get_state):
More meaningful exception message
* gst/gstpad.override:
wrapped gst_pad_alloc_buffer(), gst_pad_pull_range(),
gst_pad_get_range(), gst_pad_get_internal_links(),
gst_pad_get_internal_links_default(), gst_pad_get_query_types(),
gst_pad_get_query_types_default()
2005-07-12 16:37:31 +00:00
Edward Hervey
6af81f9d04 gst/gstmessage.override: fixes in .parse_state_changed() and parse_tag()
Original commit message from CVS:
* gst/gstmessage.override:
fixes in .parse_state_changed() and parse_tag()
2005-07-12 10:13:53 +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
8bc75a8b27 gst.play is gone in 0.9...
Original commit message from CVS:
* configure.ac:
* Makefile.am:
* gst/Makefile.am:
* testsuite/common.py:
gst.play is gone in 0.9...
2005-07-05 13:50:21 +00:00
Edward Hervey
95344205ec play is obsolete
Original commit message from CVS:
play is obsolete
2005-07-05 13:26:01 +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
f3ec338b76 Modifications to have parallel-installable gst-python
Original commit message from CVS:
* 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 10:47:25 +00:00
Edward Hervey
b35b212bf8 gst/pygstminiobject.c: thread safe handling of mini-objects
Original commit message from CVS:
* gst/pygstminiobject.c:
thread safe handling of mini-objects
* 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 18:07:35 +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
78143798a7 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/gstcaps.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:41:21 +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
Benjamin Otte
3843709727 gst/gstbuffer.override: handle the data correctly
Original commit message from CVS:
* gst/gstbuffer.override:
handle the data correctly
2005-04-25 02:36:27 +00:00
Thomas Vander Stichele
aedd023474 use macros to cast; fix probe warning
Original commit message from CVS:
use macros to cast; fix probe warning
2005-04-12 17:02:12 +00:00
Thomas Vander Stichele
487a4d94ec add noargs
Original commit message from CVS:
add noargs
2005-04-12 16:57:07 +00:00
Thomas Vander Stichele
fa0de98bdd put this back
Original commit message from CVS:
put this back
2005-04-12 16:32:07 +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
e6cb4fa426 Revert last change(s)
Original commit message from CVS:
Revert last change(s)
2005-03-18 13:05:53 +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
Thomas Vander Stichele
b6acbfe0a1 fix callback args so tests work
Original commit message from CVS:
fix callback args so tests work
2005-01-10 19:02:53 +00:00
Thomas Vander Stichele
4c20bb90a5 spaces break build
Original commit message from CVS:
spaces break build
2005-01-10 17:42:15 +00:00
Thomas Vander Stichele
b67833de2a first pass at wrapping GstProbe
Original commit message from CVS:
first pass at wrapping GstProbe
2005-01-10 17:29:47 +00:00
Johan Dahlin
6782bfbc7b Split out gst.override to a few more files.
Original commit message from CVS:
Split out gst.override to a few more files.
Rename gstpad-handlers.override to gstpad.override
Include more information for some LinkError exceptions
2005-01-01 15:23:42 +00:00
Johan Dahlin
f51f43e1d9 Improve support GstBuffer attributes, r/w support for timestamp.
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gstbuffer.override:
* testsuite/test_buffer.py:

Improve support GstBuffer attributes, r/w support for timestamp.
2004-12-14 16:53:09 +00:00
Zaheer Abbas Merali
5f899b1b02 gst/interfaces.*: Apply patch from Zaheer Abbas Merali to implement this method. Not that it's not .list_channels() d...
Original commit message from CVS:
* gst/interfaces.defs:
* gst/interfaces.override (_wrap_gst_color_balance_list_channels):
Apply patch from Zaheer Abbas Merali to implement this method. Not
that it's not .list_channels() due to conflict with a method of
the same name in the GstTuner interface
2004-11-29 12:25:56 +00:00
Brian Warner
ebae649260 gst/gst.override: Apply patch from Brian Warner to throw a link error when element and pad linking fails.
Original commit message from CVS:
* gst/gst.override: Apply patch from Brian Warner to throw a link
error when element and pad linking fails.
2004-11-29 12:14:27 +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
Johan Dahlin
f101cbf97c redefine broken implement casting macros to something saner
Original commit message from CVS:
redefine broken implement casting macros to something saner
2004-11-25 14:30:24 +00:00
Johan Dahlin
b9f4f5e5f7 sink GstObject, much like GtkObject
Original commit message from CVS:
sink GstObject, much like GtkObject
2004-11-23 12:33:58 +00:00
Johan Dahlin
2e23effc15 Use gst.element_factory_make in play example
Original commit message from CVS:
* examples/gst/play.py:
* gst/gst-types.defs:
* gst/gst.override:
* testsuite/Makefile.am:
* testsuite/common.py:
* testsuite/event.py:
* testsuite/test_event.py:

Use gst.element_factory_make in play example

Use boxed instead of pointer for gst.Event, it was such an ugly
hack.

Ref the event when sending using gst.element_send_event.

Add a bunch of testcases (and a C module), renamed event to
test_event.py
2004-11-23 10:16:58 +00:00
Johan Dahlin
857242d2f1 gst/gst.override (_wrap_gst_tag_setter_get_list): Override, to avoid compiler warning.
Original commit message from CVS:
* gst/gst.override (_wrap_gst_tag_setter_get_list): Override, to
avoid compiler warning.
2004-11-15 12:13:57 +00:00
Johan Dahlin
195af7df00 gst/gstmodule.c (init_gst): Reset LC_NUMERIC, since it might change in gst_init_check. Fixes 100% CPU usage in flumot...
Original commit message from CVS:
* gst/gstmodule.c (init_gst): Reset LC_NUMERIC, since it might
change in gst_init_check. Fixes 100% CPU usage in flumotion
when using a non C locale.
2004-11-15 11:51:50 +00:00
Johan Dahlin
2d3c19e231 gst/gst.override (tag_foreach_func_list): Disable lists instead of raising an exception.
Original commit message from CVS:
* gst/gst.override (tag_foreach_func_list): Disable lists instead
of raising an exception.

* gst/gst-types.defs (ImplementsInterface, TagSetter): Define
these here.
2004-11-04 15:31:11 +00:00
Johan Dahlin
9fcba18fa9 gst/interfaces.override (_wrap_gst_mixer_list_tracks): Impl.
Original commit message from CVS:
* gst/interfaces.override (_wrap_gst_mixer_list_tracks): Impl.
(_wrap_gst_tuner_list_norms, _wrap_gst_tuner_list_channels): Plug
leaks.
2004-11-04 10:44:28 +00:00
Johan Dahlin
f2abd02516 more build fixes
Original commit message from CVS:
more build fixes
2004-10-11 13:43:26 +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
19ba5c793a gst/gst.override: Remove gst.Element support. Fix broken pad repr function.
Original commit message from CVS:
* gst/gst.override: Remove gst.Element support. Fix broken pad
repr function.
2004-10-11 09:01:23 +00:00
Johan Dahlin
a3ff243a42 Add some hackery hackery
Original commit message from CVS:
Add some hackery hackery
2004-10-11 08:56:52 +00:00
Johan Dahlin
a3d89adf3c Define the URIHandler interface here
Original commit message from CVS:
Define the URIHandler interface here
2004-10-11 08:51:28 +00:00
Zaheer Abbas Merali
087bae124f gst/gstmodule.c: Make gst-python not hang on import when embedded.
Original commit message from CVS:
2004-10-10  Zaheer Abbas Merali  <zaheerabbas at merali dot org>

* gst/gstmodule.c: (init_gst):
Make gst-python not hang on import when embedded.
Fixes bug #155041
2004-10-10 20:49:27 +00:00
Johan Dahlin
e08b8d1b67 Use pyg_gil_state_*
Original commit message from CVS:
Use pyg_gil_state_*
2004-10-07 10:05:12 +00:00
Johan Dahlin
a1f058c663 Revert, since we have code which depends on this "feature"
Original commit message from CVS:
Revert, since we have code which depends on this "feature"
2004-10-04 14:58:40 +00:00
Johan Dahlin
25bb8d5012 gst/interfaces.defs: Add proper fiels to GstTunerNorm. Also remove parent property from all interfaces.
Original commit message from CVS:
* gst/interfaces.defs: Add proper fiels to GstTunerNorm. Also
remove parent property from all interfaces.
2004-10-04 10:45:46 +00:00
Thomas Vander Stichele
55a8ec7633 comment
Original commit message from CVS:
comment
2004-09-29 11:37:55 +00:00
Johan Dahlin
f915e8d473 gst/gstmodule.c (python_do_pending_calls): Use
Original commit message from CVS:
* gst/gstmodule.c (python_do_pending_calls): Use
PyOS_InterruptOccurred and only hold the GIL during
PyErr_SetNone. Use _pygst_main_quit to avoid errors/aborts. Also
use the pygtk provided gil macros instead of the python ones.
2004-09-29 11:13:21 +00:00
Johan Dahlin
e6a9dec474 fix threading issues here aswell
Original commit message from CVS:
fix threading issues here aswell
2004-09-22 18:01:45 +00:00
Johan Dahlin
009920d062 gst/gst.override: use new threading API
Original commit message from CVS:
* gst/gst.override: use new threading API
2004-09-22 16:34:08 +00:00
Thomas Vander Stichele
828449319c gst/: fix headers
Original commit message from CVS:
2004-09-13  Thomas Vander Stichele  <thomas at apestaart dot org>

* gst/__init__.py:
* gst/gstreamer.py:
* gst/arg-types.py:
fix headers
* gst/gst.override:
change GstPad repr
* gst/ltihooks.py:
fix distcheck for uninstalled by only adding .libs when needed
2004-09-13 07:31:31 +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
Johan Dahlin
78e7f604ad gst/interfaces.defs (TunerNorm, TunerChannel): Add fields.
Original commit message from CVS:
* gst/interfaces.defs (TunerNorm, TunerChannel): Add fields.
2004-08-12 17:16:33 +00:00
Johan Dahlin
582e7e6624 gst/interfaces.override (_wrap_gst_tuner_list_norms)
Original commit message from CVS:
* gst/interfaces.override (_wrap_gst_tuner_list_norms)
(_wrap_gst_tuner_list_channels): Impl.
2004-08-12 17:05:33 +00:00
Johan Dahlin
3412a9bd20 Take a slightly different approach to converting to structure fields
Original commit message from CVS:
Take a slightly different approach to converting to structure fields
2004-08-06 19:19:41 +00:00
Thomas Vander Stichele
f59e0690f6 one item list with structure
Original commit message from CVS:
one item list with structure
2004-08-06 19:03:50 +00:00
Johan Dahlin
4b55e4eafe More testing
Original commit message from CVS:
More testing
2004-08-06 19:03:08 +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
Johan Dahlin
3f630774bb testsuite/struct.py (StructureTest.testStructureChange): Enable some tests.
Original commit message from CVS:
* testsuite/struct.py (StructureTest.testStructureChange): Enable
some tests.

* gst/gst.override (_wrap_gst_structure_ass_subscript): Impl
2004-08-06 14:18:28 +00:00
Johan Dahlin
169626bb24 configure.ac: Require python 2.3
Original commit message from CVS:
* configure.ac: Require python 2.3

* gst/gstmodule.c (python_do_pending_calls): Use PyGILState and
friends here.

* gst/gst.override (_pygst_main_quit, _pygst_main): Use these two
instead of gst_main/gst_main_quit so we can check if we're in a
mainloop or not.
2004-08-03 17:07:38 +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
acefacc62c testsuite/registry.py: Add some basic tests
Original commit message from CVS:
* testsuite/registry.py: Add some basic tests

* gst/gst.override: Don't ignore all gst_registry_* symbols
(_wrap_gst_registry_pool_plugin_list): Impl.
(_wrap_gst_registry_pool_feature_list): Impl.

* gst/gst-types.defs (Plugin): Add as a boxed
2004-07-15 10:15:18 +00:00
Johan Dahlin
4e37d3cd9a gst/__init__.py: Use DLFCN instead of dl to help python installations without the dl module (gentoo for instance)
Original commit message from CVS:
* gst/__init__.py: Use DLFCN instead of dl to help python
installations without the dl module (gentoo for instance)
2004-07-15 09:48:22 +00:00
Johan Dahlin
e779537e83 gst/gst.override (_wrap_gst_pad_query, _wrap_gst_element_query)
Original commit message from CVS:
* gst/gst.override (_wrap_gst_pad_query, _wrap_gst_element_query)
(_wrap_gst_pad_convert): Remove exceptions, return Long values
(and convert from LongLongs) and clean up a little)
2004-07-13 10:08:45 +00:00
Johan Dahlin
9165bf8c35 testsuite/element.py (QueryTest.testQuery): Another small test
Original commit message from CVS:
* testsuite/element.py (QueryTest.testQuery): Another small test

* gst/gst.override (_wrap_gst_element_query): Ditto
(_wrap_gst_pad_convert): Ditto
2004-07-13 09:08:32 +00:00
Johan Dahlin
0a37fd1928 testsuite/event.py (EventFileSrcTest.setUp): Start the pipeline, so we don't get warnings when sending events
Original commit message from CVS:
* testsuite/event.py (EventFileSrcTest.setUp): Start the pipeline,
so we don't get warnings when sending events
(EventTest.setUp): Ditto.

* testsuite/pad.py: New test, only testing simple pad queries so far.

* testsuite/Makefile.am (tests): Add missing tests

* gst/gst.override (_wrap_gst_pad_query): Raise RuntimeError if
the return value is False and only return the queried value.
2004-07-13 09:00:07 +00:00
Johan Dahlin
0502f9b123 gst/Makefile.am (EXTRA_DIST): Add ltihooks.py
Original commit message from CVS:
* gst/Makefile.am (EXTRA_DIST): Add ltihooks.py
2004-06-21 09:18:39 +00:00
Thomas Vander Stichele
d6fab19809 distcheck fixes
Original commit message from CVS:
distcheck fixes
2004-06-21 09:15:42 +00:00
Johan Dahlin
190edee6fc Add some more stuff GstBuffer stuff
Original commit message from CVS:
Add some more stuff GstBuffer stuff
2004-06-21 08:36:08 +00:00
Johan Dahlin
57b9efc9cf gst/gstbuffer.override (_wrap_gst_buffer_flag_is_set)
Original commit message from CVS:
* gst/gstbuffer.override (_wrap_gst_buffer_flag_is_set)
(_wrap_gst_buffer_flag_set, _wrap_gst_buffer_flag_unset): Impl.

* testsuite/buffer.py (BufferTest.testBufferFlagIsSet): New test
2004-06-09 13:40:27 +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
45c2cf641d gst/gst-types.defs (Buffer): Add some fields
Original commit message from CVS:
* gst/gst-types.defs (Buffer): Add some fields

* gst/gstbuffer.override: Move out from gst.override, add
tp_as_sequence support and reorganize the code

* testsuite/buffer.py (BufferTest): Add new tests
2004-05-04 14:20:28 +00:00
Johan Dahlin
a2d17fd974 gst/__init__.py: Remove pygtk import and import gobject directly. It's up the app to call pygtk.require and no the li...
Original commit message from CVS:
* gst/__init__.py: Remove pygtk import and import gobject
directly. It's up the app to call pygtk.require and no the
library.
2004-05-03 16:51:50 +00:00
Johan Dahlin
ed9136fd26 gst/common.h: Add some parenthesises
Original commit message from CVS:
* gst/common.h: Add some parenthesises

* gst/play.override: Include common.h
2004-05-03 11:04:07 +00:00
Johan Dahlin
46bad57088 gst/Makefile.am (INCLUDES): Move PYGTK_CFLAGS to common_cflags instead of INCLUDES
Original commit message from CVS:
* gst/Makefile.am (INCLUDES): Move PYGTK_CFLAGS to common_cflags
instead of INCLUDES

* configure.ac: define HAVE_OLD_PYGTK if we're on pygtk 2.3.91 or
earlier and disable editor checks

* gst/common.h: Add backwards compatible typedef for python < 2.3
and pygtk < 2.3.92
2004-05-03 10:46:49 +00:00
Johan Dahlin
338d44b674 configure.ac: define HAVE_OLD_PYGTK if we're on pygtk 2.3.91 or earlier.
Original commit message from CVS:
* configure.ac: define HAVE_OLD_PYGTK if we're on pygtk 2.3.91 or earlier.

* gst/common.h: Add backwards compatible typedef for python < 2.3
and pygtk < 2.3.92
2004-05-03 10:22:36 +00:00
Johan Dahlin
1737a9736c Forgot to add this
Original commit message from CVS:
Forgot to add this
2004-05-03 09:14:29 +00:00
Johan Dahlin
f63c95390b codegen/codegen.py: Resync (add support for tp_as_buffer)
Original commit message from CVS:
* codegen/codegen.py: Resync (add support for tp_as_buffer)

* gst/gst.override: Support buffer interface for GstBuffer. Move
stuff into common.h, fix wrapping for
gst_pad_template_get_caps_by_name
2004-05-03 09:10:26 +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
90579783ce configure.ac (PYGTK_CODEGEN): Use built in code generator again and don't require 2.3.91, 2.0.0 should do fine (FC1 o...
Original commit message from CVS:
* configure.ac (PYGTK_CODEGEN): Use built in code generator again
and don't require 2.3.91, 2.0.0 should do fine (FC1 ok, RH9 isn't)

* TODO: Update

* gst/interfaces.override, gst/play.override: Add typedef for
python < 2.3

* codegen/codegen.py: Readd :/
2004-04-16 16:53:29 +00:00
Johan Dahlin
f203f4826c testsuite/pipeline.py (PipelineConstructor.testGoodConstructor) (PipelineConstructor.testBadConstruct)
Original commit message from CVS:
* testsuite/pipeline.py (PipelineConstructor.testGoodConstructor)
(PipelineConstructor.testBadConstruct)
(ThreadConstructor.testCreate): New tests

* testsuite/element.py (ElementTest.testGoodConstructor): Add
isinstance(element, gst.Element) test

* testsuite/common.py: Clean up, use ltihooks
(init) Assign tp_new for pipeline and thread to PyType_GenericNew
for now.
2004-04-16 13:56:39 +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
e58c46e159 gst/Makefile.am (EXTRA_DIST): And make sure we have all defs here.
Original commit message from CVS:
* gst/Makefile.am (EXTRA_DIST): And make sure we have all defs here.
2004-03-31 14:37:01 +00:00
Johan Dahlin
d83d73b365 gst/ltihooks.py: New file
Original commit message from CVS:
* gst/ltihooks.py: New file

* gst/__init__.py: try to import ltihooks.py
2004-03-31 14:00:54 +00:00
Johan Dahlin
e51ffb9d06 gst/Makefile.am: Only install gst-types.defs
Original commit message from CVS:
* gst/Makefile.am: Only install gst-types.defs
2004-03-31 13:49:24 +00:00
Johan Dahlin
15f1eb48cf gst/gstmodule.c (init_gst): Add constants for GST_*SECOND.
Original commit message from CVS:
* gst/gstmodule.c (init_gst): Add constants for GST_*SECOND.
(python_do_pending_calls): New idler handler, similar to pygtk, so
python events (eg KeyboardInterrupt) can be raised during mainloop

* gst/gst.override (_wrap_gst_bin_get_list):
(_wrap_gst_pad_tp_repr, caps_length, caps_item)
(structure_length, structure_subscript)
(_wrap_gst_structure_tp_repr): Impl.
(_wrap_gst_main): Override with threading blocking.

* gst/gst-types.defs (Object): add flags field.
(Structure): Add copy/release funcs

* gst/__init__.py (devloc): Don't initialize threads

* gst/Makefile.am: clean up

* examples/gst/player.py: Prettify and simplify. Uses GstThread now.

* examples/gstplay/player.py: Update to new api and make it work.
2004-03-24 10:31:35 +00:00
Thomas Vander Stichele
e90bbb0669 fix automake
Original commit message from CVS:
fix automake
2004-03-18 17:07:12 +00:00