Commit graph

218 commits

Author SHA1 Message Date
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
Thomas Vander Stichele
5768672390 gst/: add/move some code to handle wrapping/refcounting of possible
Original commit message from CVS:
* gst/Makefile.am:
* gst/common.h:
* gst/pygstobject.c: (pygstobject_sink), (pygstobject_new),
(pygst_object_unref):
* gst/pygstobject.h:
* gst/gstmodule.c: (init_gst):
add/move some code to handle wrapping/refcounting of possible
GstObject
* codegen/argtypes.py:
* gst/gstbin.override:
* gst/gstbus.override:
* gst/gstelement.override:
* gst/gstpad.override:
* gst/interfaces.override:
use this reffing code
* gst/gst-types.defs:
* gst/gst.override:
add a __gstrefcount__ field to GstObject types
add tp_traverse, tp_dealloc and tp_clear, so we handle refcounting
properly related to garbage collection
* testsuite/test_element.py:
* testsuite/test_pad.py:
add more tests, add some refcount checks
2005-09-28 12:17:29 +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
ee6e612754 gst/gstpad.override: don't leak the parent when repr'ing pads
Original commit message from CVS:

* gst/gstpad.override:
don't leak the parent when repr'ing pads
2005-09-28 09:52:37 +00:00
Thomas Vander Stichele
b9ba1d81e3 debugging and error improvement
Original commit message from CVS:
debugging and error improvement
2005-09-28 08:41:30 +00:00
Thomas Vander Stichele
0ef50e2d9a gst/__init__.py: require pygtk 2.0 when importing gst it only works with 2.0, and it sets up the path correctly when ...
Original commit message from CVS:

* gst/__init__.py:
require pygtk 2.0 when importing gst
it only works with 2.0, and it sets up the path correctly
when running against a pygtk compiled into a different prefix
2005-09-28 07:40:15 +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
Jan Schmidt
1f45a20a81 gst/gstbuffer.override: Revert Buffer.caps change, since wingo fixed it upstream
Original commit message from CVS:
* gst/gstbuffer.override:
Revert Buffer.caps change, since wingo fixed it upstream
2005-09-22 10:13:57 +00:00
Jan Schmidt
ab0dbff2a0 gst/gstbuffer.override: Increment the refcount when fetching GST_BUFFER_CAPS.
Original commit message from CVS:
* gst/gstbuffer.override:
Increment the refcount when fetching GST_BUFFER_CAPS.
Python gurus, please fix if there's a better way this should be done.
2005-09-22 04:16:26 +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
Thomas Vander Stichele
c8f8cd37b9 commit intermediate wrapper updates
Original commit message from CVS:
commit intermediate wrapper updates
2005-09-18 11:06:42 +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
de0ee6f4fd fix wrong decrefs
Original commit message from CVS:
fix wrong decrefs
2005-09-13 09:48:32 +00:00
Thomas Vander Stichele
509bee5e5b whitespace cleanups
Original commit message from CVS:
whitespace cleanups
2005-09-13 08:52:49 +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
a74cc80a77 examples/vumeter.py: update for property name change
Original commit message from CVS:
* examples/vumeter.py:
update for property name change
* gst/gst.override:
* testsuite/test_element.py:
actually log on objects, yay
2005-09-12 17:06:09 +00:00
Thomas Vander Stichele
ed6f0f377a fix for header changes
Original commit message from CVS:
fix for header changes
2005-09-09 16:39:59 +00:00
Thomas Vander Stichele
83f80e9942 wrap gst.Element.get_state, returning a tuple add tests for it
Original commit message from CVS:
wrap gst.Element.get_state, returning a tuple
add tests for it
2005-09-08 15:13:06 +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
Thomas Vander Stichele
61038c89f1 don't mangle plugin.get_version() to a tuple of int; it segfaults when the version contains non-ints like '-'
Original commit message from CVS:
don't mangle plugin.get_version() to a tuple of int; it segfaults
when the version contains non-ints like '-'
2005-09-03 10:01:47 +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
03203aa89e fix distcheck
Original commit message from CVS:
fix distcheck
2005-09-02 10:56:19 +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
23b365140e add a .data to buffers; it feels more natural to me than doing str(buffer) compared to the other properties.
Original commit message from CVS:

* gst/gst-types.defs:
* gst/gstbuffer.override:
* gst/pygstminiobject.c: (pygstminiobject_new_noref):
* testsuite/test_buffer.py:
add a .data to buffers; it feels more natural to me than doing
str(buffer) compared to the other properties.
make sub_buffer test for data
2005-09-01 14:50:01 +00:00
Thomas Vander Stichele
dc83edf73e fix a race condition in test_buffer.py
Original commit message from CVS:
fix a race condition in test_buffer.py


* gst/gst.override:
* gst/gstmodule.c: (init_gst):
add a pygst debug category for bindings themselves to use
* gst/gstbuffer.override:
add a repr method; add some assertions
* gst/pygstminiobject.c: (pygst_miniobject_init),
(pygstminiobject_register_wrapper), (pygstminiobject_new),
(pygstminiobject_new_noref), (pygstminiobject_dealloc),
(pygstminiobject_clear):
make the miniobjs hash private with an underscore
add debugging for inserting/removal in hash
fix pygstminiobject_clear - it also needs to remove
from the global hash.  Fixes a nasty race problem in
test_buffer
* testsuite/test_buffer.py:
expand on the subbuffer test
2005-09-01 14:41:28 +00:00
Thomas Vander Stichele
7c9e84bc0f don't import ltihooks twice
Original commit message from CVS:
don't import ltihooks twice
2005-09-01 14:24:44 +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
0a961e4d7f gst/interfaces.defs (MixerTrack): MixerTrack is a GObject. How did this ever work before?
Original commit message from CVS:
2005-08-19  Andy Wingo  <wingo@pobox.com>

* gst/interfaces.defs (MixerTrack): MixerTrack is a GObject. How
did this ever work before?
2005-08-19 16:10:37 +00:00
Andy Wingo
08c7b1a588 gst/interfaces.override (_wrap_gst_tuner_list_channels) (_wrap_gst_tuner_list_norms, _wrap_gst_mixer_list_tracks)
Original commit message from CVS:
2005-08-19  Andy Wingo  <wingo@pobox.com>

* gst/interfaces.override (_wrap_gst_tuner_list_channels)
(_wrap_gst_tuner_list_norms, _wrap_gst_mixer_list_tracks)
(_wrap_gst_color_balance_list_channels): Catch programming errors
without segfaults, as glib would do.
2005-08-19 14:46:05 +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
1a39bca0ea gst/gst.override: Only display the filename and not the full path
Original commit message from CVS:
* gst/gst.override: (pygst_debug_log):
Only display the filename and not the full path
2005-08-11 13:23:20 +00:00
Edward Hervey
762b581fcb gst/gstmodule.c: changed debug category name from 'gst-python' to 'python'
Original commit message from CVS:
* gst/gstmodule.c: (init_gst):
changed debug category name from 'gst-python' to 'python'
* gst/gst.override: (pygst_debug_log):
gchar is way smaller than an int... resulting in negative line numbers
in debug.
2005-08-10 15:42:03 +00:00
Edward Hervey
54936521fb gst/gst.override: gchar is way smaller than an int... resulting in negative line numbers in debug.
Original commit message from CVS:
* gst/gst.override: (pygst_debug_log):
gchar is way smaller than an int... resulting in negative line numbers
in debug.
2005-08-10 15:24:12 +00:00
Edward Hervey
4164682236 gst/gst.override: printf("urlencoded%20space") != printf("%s", "urlencoded%20space")
Original commit message from CVS:
* gst/gst.override: (pygst_debug_log):
printf("urlencoded%20space") != printf("%s", "urlencoded%20space")
Funny how a lot of problems have gone since that's fixed :)
2005-08-10 15:06:51 +00:00
Edward Hervey
8ad2d61eeb gst/gstpad.override: Long != LongLong ....
Original commit message from CVS:
* gst/gstpad.override: (_wrap_gst_pad_query_position):
Long != LongLong ....
2005-08-09 13:42:56 +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
Andy Wingo
27ca26ae0b gst/gstmessage.override (_wrap_gst_message_parse_error): Always return a tuple of length 2.
Original commit message from CVS:
2005-08-03  Andy Wingo  <wingo@pobox.com>

* gst/gstmessage.override (_wrap_gst_message_parse_error): Always
return a tuple of length 2.
2005-08-03 12:48:40 +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
7bb0ac55a2 gst/gst-types.defs: Added GhostPad type
Original commit message from CVS:
* gst/gst-types.defs: (GhostPad):
Added GhostPad type
* gst/interfaces.defs:
Added MixerTrackFlags, TunerChannelFlags and MixerOptions
Want the rest of the poem ? ;)
2005-07-25 11:29:47 +00:00
Edward Hervey
b32dc34bfc It seems that, somewhere along the way, I forgot to make sure interfaces were binded too :)
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/interfaces.defs:
* gst/interfaces.override:
* gst/xoverlay.override:
It seems that, somewhere along the way, I forgot to make sure interfaces
were binded too :)
2005-07-23 14:54:02 +00:00