Commit graph

271 commits

Author SHA1 Message Date
Edward Hervey
03f65e4179 gst/: Updated to new API
Original commit message from CVS:
* gst/gst-types.defs:
* gst/gst.defs:
Updated to new API
* gst/gstbus.override:
bus.add_watch() now uses gst_bus_add_watch_full() using
pyg_destroy_notify as the DestroyNotify function, thus enabling
proper python garbage collection.
* testsuite/common.py:
Let's check refcounting of ALL gst.Object
* testsuite/test_bin.py:
Added debug
* testsuite/test_bus.py:
Added "message" signal version of test
2005-10-13 15:56:16 +00:00
Thomas Vander Stichele
c72f87b682 update a test fix an uninited var
Original commit message from CVS:
update a test
fix an uninited var
2005-10-13 15:36:04 +00:00
Edward Hervey
e3ac835751 gst/: Use PyList_SetItem() instead of PyList_Append() for faster list creation and proper python refcounting.
Original commit message from CVS:
Reviewed by Edward Hervey  <edward@fluendo.com>
* gst/gst.override:
* gst/gstevent.override:
* gst/gstpad.override:
* gst/gstquery.override:
Use PyList_SetItem() instead of PyList_Append() for faster list creation
and proper python refcounting.
Closes bug #318684
2005-10-13 10:58:16 +00:00
Edward Hervey
a31f5476e8 gst/gstobject.override: Py_VISIT() might make code cleaner... but it doesn't work with python < 2.4
Original commit message from CVS:
Reviewed by Edward Hervey  <edward@fluendo.com>
* gst/gstobject.override: (_wrap_gst_object_tp_traverse):
Py_VISIT() might make code cleaner... but it doesn't work with
python < 2.4
Closes bug #318692
2005-10-13 10:51:19 +00:00
Edward Hervey
f50c30441c examples/gstfile.py: misc fixes
Original commit message from CVS:
* examples/gstfile.py:
misc fixes
* gst/Makefile.am:
* gst/pygstexception.c:
* gst/pygstexception.h:
* gst/gstelementfactory.override:
* gst/gst.override:
* gst/gstpad.override:
* gst/gstmodule.c: (init_gst):
Added exceptions system by Alessandro Decina <alessandro@nnva.org>
Closes bug #315433
* gst/gstbus.override:
* gst/gstelement.override:
Fix for _wrap_gst_element_get_state()
* gst/gstobject.override:
More debug
2005-10-13 10:41:06 +00:00
Andy Wingo
b47ce3f716 gst/gst-types.defs: Fix flags wrongly declared as enums.
Original commit message from CVS:
2005-10-12  Andy Wingo  <wingo@pobox.com>

* gst/gst-types.defs: Fix flags wrongly declared as enums.
2005-10-12 16:26:25 +00:00
Andy Wingo
584088b78c gst/gst-extrafuncs.defs (flags, set_flag, unset_flag): Fix for core updates.
Original commit message from CVS:
2005-10-12  Andy Wingo  <wingo@pobox.com>

* gst/gst-extrafuncs.defs (flags, set_flag, unset_flag): Fix for
core updates.

* gst/gstmodule.c (init_gst): Give a better error message.

(also fix the changelog)
2005-10-12 16:05:15 +00:00
Andy Wingo
46e1018e41 gst/gst.defs (gst_registry_scan_paths) (gst_element_abort_preroll, gst_plugin_check_file)
Original commit message from CVS:
2005-10-12  Andy Wingo  <wingo@pobox.com>

* gst/gst.defs (gst_registry_scan_paths)
(gst_element_abort_preroll, gst_plugin_check_file)
(gst_element_finish_preroll): Removed undefined symbols.

* gst/gstelement.override (_wrap_gst_element_get_state): Fix for
GstClockTime api change.
2005-10-12 14:31:53 +00:00
Julien Moutte
2cfbf3f112 Reordering header inclusion order to fix build on my machine.
Original commit message from CVS:
2005-10-12  Julien MOUTTE  <julien@moutte.net>

* gst/gst-argtypes.c:
* gst/pygstminiobject.c:
* testsuite/testhelpermodule.c: Reordering header inclusion
order to
fix build on my machine.
2005-10-12 11:21:53 +00:00
Thomas Vander Stichele
9357eeb14a update for new api
Original commit message from CVS:
update for new api
2005-10-12 01:53:56 +00:00
Edward Hervey
56f25a4653 gst/common.h: cleanup
Original commit message from CVS:
* gst/common.h:
cleanup
* gst/gst-types.defs:
* gst/gst.defs:
Updated defs file to current gstreamer core
* gst/gst.override:
Added useless function (at least from python bindings) and little correction
on _wrap_gst_xml_get_topelements()
* gst/gstbin.override:
* gst/gstbuffer.override:
Fix memleak in gst.Buffer.set_caps()
* gst/gstevent.override:
Added wrapper for remaining gst_event_parse_*()
* gst/gstlibs.override:
Wrapped more gst.Controller methods
* gst/gstmodule.c: (init_gst):
new gst_init()
Added atexit(gst_deinit)
* gst/gstpad.override:
Fix memleak in gst.Pad.set_caps()
* gst/gstquery.override:
add gst.Query.parse_segment()
* gst/libs.defs:
Updated to current gst-libs
* gst/pygstminiobject.c: (pygstminiobject_register_wrapper),
(pygstminiobject_new), (pygstminiobject_dealloc):
Added debug
* testsuite/Makefile.am:
* testsuite/common.py:
* testsuite/gstpython.supp:
* testsuite/python.supp:
* testsuite/test_bin.py:
* testsuite/test_buffer.py:
* testsuite/test_element.py:
* testsuite/test_event.py:
* testsuite/test_ghostpad.py:
* testsuite/test_iterator.py:
* testsuite/test_message.py:
* testsuite/test_pipeline.py:
Proper valgrind testing,
Updated tests to new API
2005-10-11 12:42:53 +00:00
Thomas Vander Stichele
c37b502949 now we can send events to elements again
Original commit message from CVS:
* gst/gstelement.override:
* testsuite/test_event.py:
now we can send events to elements again
2005-10-09 16:02:42 +00:00
Thomas Vander Stichele
c3f136f836 gst/: fix for pending state being added to state message
Original commit message from CVS:

* gst/gst.defs:
* gst/gstmessage.override:
fix for pending state being added to state message
* testsuite/test_buffer.py:
* testsuite/test_pipeline.py:
update
2005-10-09 13:55:59 +00:00
Andy Wingo
e1137284ce gst/gstelement.override (_wrap_gst_element_get_state): Drop the python lock while in get_state.
Original commit message from CVS:
2005-10-07  Andy Wingo  <wingo@pobox.com>

* gst/gstelement.override (_wrap_gst_element_get_state): Drop the
python lock while in get_state.

* gst/__init__.py: Check the right module (i.e., the same check as
pygtk does).
2005-10-07 16:48:26 +00:00
Edward Hervey
fd5f5ad8d0 gst/pygstiterator.c: Unref the return value, since the iterator refs them.
Original commit message from CVS:
* gst/pygstiterator.c:
Unref the return value, since the iterator refs them.
* testsuite/test_iterator.py:
Added more test cases, re-enabled gcverify now the bug is fixed
* gst/pygstminiobject.c: (pygstminiobject_register_wrapper),
(pygstminiobject_new), (pygstminiobject_dealloc):
Comments to better track the creation/destruction of PyGstMiniObject
Fixed naming (gst.GstMiniObject => gst.MiniObject)
* testsuite/python.supp:
Updated python specific valgrind suppressions to latest version and
added x86_64 cases
* testsuite/gstpython.supp:
Series of suppressions for errors/leaks not solvable within gst-python
* testsuite/Makefile.am:
Added gstpython.supp
2005-10-07 16:21:22 +00:00
Edward Hervey
6858dbb214 gst/pygstminiobject.c: Comments to better track the creation/destruction of PyGstMiniObject
Original commit message from CVS:
* gst/pygstminiobject.c: (pygstminiobject_register_wrapper),
(pygstminiobject_new), (pygstminiobject_dealloc):
Comments to better track the creation/destruction of PyGstMiniObject
Fixed naming (gst.GstMiniObject => gst.MiniObject)
* testsuite/python.supp:
Updated python specific valgrind suppressions to latest version and
added x86_64 cases
* testsuite/gstpython.supp:
Series of suppressions for errors/leaks not solvable within gst-python
* testsuite/Makefile.am:
Added gstpython.supp
2005-10-07 13:48:20 +00:00
Johan Dahlin
8ff948737b gst/: Even more bored tonight: Implement next/resync/push.
Original commit message from CVS:
* gst/common.h:
* gst/gstmodule.c: (init_gst):
* gst/pygstiterator.c: (pygst_iterator_iter_next),
(pygst_iterator_next), (pygst_iterator_push),
(pygst_iterator_resync):
Even more bored tonight: Implement next/resync/push.
Register type so we can call methods and so.
2005-10-07 01:52:28 +00:00
Johan Dahlin
7534ba0486 Add GstIterator wrapping and tests.
Original commit message from CVS:
* codegen/argtypes.py:
* gst/Makefile.am:
* gst/common.h:
* gst/gst.defs:
* gst/gstbin.override:
* gst/gstelement.override:
* gst/pygstiterator.c: (pygst_iterator_dealloc),
(pygst_iterator_iter_next), (pygst_iterator_new):
* testsuite/test_iterator.py:
Add GstIterator wrapping and tests.
2005-10-07 01:21:57 +00:00
Edward Hervey
396316a7e4 memleak fixes. Thanks valgrind :)
Original commit message from CVS:
* gst/gstpad.override:
* gst/gststructure.override:
* testsuite/testhelpermodule.c: (_wrap_emit_event):
memleak fixes. Thanks valgrind :)
2005-10-06 16:58:38 +00:00
Edward Hervey
d6abb5817e gst/gstcaps.override: new caps should be freed on dealloc...
Original commit message from CVS:
* gst/gstcaps.override: (_wrap_gst_caps_new_empty):
new caps should be freed on dealloc...
2005-10-06 15:03:40 +00:00
Thomas Vander Stichele
c60fcf3ee5 gst/gstcaps.override: some more debugging
Original commit message from CVS:

* gst/gstcaps.override:
some more debugging
* gst/gstevent.override:
represent using the string for the type
2005-10-06 14:43:15 +00:00
Edward Hervey
2a96c988c0 gst/gstbuffer.override: Proper wrapping of the GstBuffer.caps attribute
Original commit message from CVS:
* gst/gstbuffer.override: (_wrap_gst_buffer__get_caps):
Proper wrapping of the GstBuffer.caps attribute
* gst/gstmodule.c: (init_gst):
* gst/pygstminiobject.c: (pygstminiobject_register_class):
gst-debug initialisation should happen before anything else if we
want the debugging functions to work.
2005-10-06 13:51:31 +00:00
Thomas Vander Stichele
ca1cb51d1a configure.ac: need at least 2.6.3, because that contains the code that converts signal closure arguments to the corre...
Original commit message from CVS:

* configure.ac:
need at least 2.6.3, because that contains the code that
converts signal closure arguments to the correct Gst
types
* gst/gstpad.override:
log name of probe handlers we call
* testsuite/test_pad.py:
fix up tests; use TestCase base class methods
2005-10-06 10:54:14 +00:00
Edward Hervey
f4d65bd143 gst/pygstminiobject.c: Dooh, PyGstMiniObject doesn't need cyclic garbage collection !
Original commit message from CVS:
* gst/pygstminiobject.c:
Dooh, PyGstMiniObject doesn't need cyclic garbage collection !
Bye, bye Python refcounting (and refcounting bugs).
2005-10-06 10:51:55 +00:00
Thomas Vander Stichele
64bc1f0c1b snakes are green
Original commit message from CVS:
snakes are green
2005-10-06 09:49:58 +00:00
Thomas Vander Stichele
39ce373955 but use python: category for debugging from python code
Original commit message from CVS:
but use python: category for debugging from python code
2005-10-06 09:10:14 +00:00
Thomas Vander Stichele
2e6f967f32 use correct category
Original commit message from CVS:
use correct category
2005-10-06 09:05:15 +00:00
Thomas Vander Stichele
3441391866 gst/gst.override: accurate line numbers for logging
Original commit message from CVS:

* gst/gst.override:
accurate line numbers for logging
* testsuite/common.py:
log when TestCase.setUp() and .tearDown() get called
* testsuite/test_ghostpad.py:
rework
2005-10-05 22:33:50 +00:00
Thomas Vander Stichele
e6830e1e57 gst/gst.defs: gst.Bin constructor can take no arguments
Original commit message from CVS:

* gst/gst.defs:
gst.Bin constructor can take no arguments
* testsuite/test_bin.py:
add constructor tests
* testsuite/test_element.py:
add same link test with no pads
2005-10-05 21:50:43 +00:00
Thomas Vander Stichele
2dc54c0954 add gst.Caps.__refcount__
Original commit message from CVS:

* gst/gst-types.defs:
* gst/gstcaps.override:
* testsuite/test_caps.py:
add gst.Caps.__refcount__
2005-10-05 17:18:32 +00:00
Thomas Vander Stichele
deb316e3fd gst/gstobject.override: don't try and unref objects that are already finalizing
Original commit message from CVS:

* gst/gstobject.override:
don't try and unref objects that are already finalizing
* gst/gstpad.override:
fix up the set_chainfunc method
* testsuite/common.py:
* testsuite/test_pad.py:
add linked/unlinked tests with no/true/false bufferprobes
2005-10-05 16:19:13 +00:00
Thomas Vander Stichele
02193a3552 gst/gstbuffer.override: a buffer is not a boxed
Original commit message from CVS:

* gst/gstbuffer.override:
a buffer is not a boxed
* gst/gstobject.override:
use Py_VISIT for cleaner and more pythonic code
do not visit GstObjects that still have a parent
2005-10-05 14:26:24 +00:00
Edward Hervey
16bb9b838e Added 'keeprefcount' argument for function/method parameters in order to cope with functions/methods that decrement t...
Original commit message from CVS:
* codegen/argtypes.py:
* codegen/codegen.py:
* codegen/definitions.py:
* gst/arg-types.py:
Added 'keeprefcount' argument for function/method parameters in order to
cope with functions/methods that decrement the refcount of the given
parameter
* gst/gst.defs:
Added 'keeprefcount' for buffer argument of gst_pad_push() wrapper.
2005-10-05 13:48:21 +00:00
Thomas Vander Stichele
9d7ce16b6a make sure we use the debug category
Original commit message from CVS:
make sure we use the debug category
2005-10-05 10:29:32 +00:00
Thomas Vander Stichele
626e399b4e some more traversal logging
Original commit message from CVS:
some more traversal logging
2005-10-05 10:29:00 +00:00
Thomas Vander Stichele
acdb03ae74 gst/__init__.py: only pygtk.require if pygtk wasn't imported yet
Original commit message from CVS:

* gst/__init__.py:
only pygtk.require if pygtk wasn't imported yet
2005-10-05 09:02:19 +00:00
Thomas Vander Stichele
2c73056985 gst/__init__.py: don't import gobject revert ltihooks change from Johan - if it throws an exception there is a bug an...
Original commit message from CVS:
* gst/__init__.py:
don't import gobject
revert ltihooks change from Johan - if it throws an exception
there is a bug and I want to fix it
2005-10-05 08:58:00 +00:00
Thomas Vander Stichele
74782ee345 move over some of the extend stuff that I want to use right now
Original commit message from CVS:

* configure.ac:
* gst/Makefile.am:
* gst/extend/Makefile.am:
* gst/extend/__init__.py:
* gst/extend/pygobject.py:
* gst/extend/utils.py:
move over some of the extend stuff that I want to use right now
2005-10-04 14:59:07 +00:00
Thomas Vander Stichele
c032ce22d4 fix version numbers
Original commit message from CVS:
fix version numbers
2005-10-04 08:17:25 +00:00
Thomas Vander Stichele
a7a73930ff release time
Original commit message from CVS:
release time
2005-10-03 17:52:07 +00:00
Johan Dahlin
089fdbaf22 gst/gst.defs: Remove gst_element_*_preroll functions, they are not present in gstreamer any longer.
Original commit message from CVS:
* gst/gst.defs: Remove gst_element_*_preroll functions, they are
not present in gstreamer any longer.
2005-10-02 16:24:44 +00:00
Edward Hervey
3459b34ef0 gst/gstpad.override: Removed overriding of gst_caps_get_negotiated_caps, the codegenerator handles it much better (hi...
Original commit message from CVS:
* gst/gstpad.override:
Removed overriding of gst_caps_get_negotiated_caps, the codegenerator
handles it much better (hint:don't copy)
2005-09-30 15:53:07 +00:00
Thomas Vander Stichele
58c3c18b93 gst/: deprecate add_many/remove_many, fold into add/remove
Original commit message from CVS:

* gst/gst.defs:
* gst/gst.override:
* gst/gstbin.override:
deprecate add_many/remove_many, fold into add/remove
* gst/gstmodule.c: (init_gst):
add AddError and RemoveError
* testsuite/Makefile.am:
remove fatal warnings, until we can wrap log handlers
and catch our expected add/remove errors
* testsuite/test_bin.py:
add tests for new add/remove semantics
* testsuite/test_pad.py:
* testsuite/test_pipeline.py:
fix up
2005-09-30 15:23:15 +00:00
Johan Dahlin
a630c4673a gst/gstelement.override (_wrap_gst_element_get_state): return an enum instead of an int.
Original commit message from CVS:
* gst/gstelement.override (_wrap_gst_element_get_state): return an
enum instead of an int.
2005-09-30 00:56:17 +00:00
Edward Hervey
ced71dad74 gst/gst.defs: Definitions update
Original commit message from CVS:
* gst/gst.defs:
Definitions update
2005-09-29 16:16:28 +00:00
Edward Hervey
fbd17dd797 gst/: Proper wrapping of GstController
Original commit message from CVS:
* gst/gst.override:
* gst/gstlibs.override:
Proper wrapping of GstController
* examples/Makefile.am:
* examples/audio-controller.py:
Example to show how to use gst.Controller
2005-09-29 15:42:31 +00:00
Edward Hervey
fc520c8a72 Updated definitions, wrapper and testsuite for changes in GstBus API
Original commit message from CVS:
* gst/gst.defs:
* gst/gstbus.override:
* testsuite/test_bus.py:
* testsuite/test_pipeline.py:
Updated definitions, wrapper and testsuite for changes in GstBus API
2005-09-29 13:56:03 +00:00
Edward Hervey
1ead698175 gst/gst.defs: Updated definitions
Original commit message from CVS:
* gst/gst.defs:
Updated definitions
* gst/gst.override:
ignoring _init, gst_param_spec* and gst_iterator_new_list functions
* gst/gststructure.override:
ignore gst_structure_get_enum
* testsuite/test_struct.py:
Updated test for boolean
2005-09-29 09:58:25 +00:00
Johan Dahlin
e07e65d842 gst/gstelement.override (_wrap_gst_element_get_state): Set the timeout to 0 as default
Original commit message from CVS:
* gst/gstelement.override (_wrap_gst_element_get_state): Set the
timeout to 0 as default
2005-09-29 02:38:07 +00:00
Johan Dahlin
2d13103ff7 Check if ltihooks is present before trying to delete it
Original commit message from CVS:
Check if ltihooks is present before trying to delete it
2005-09-29 01:16:21 +00:00