summaryrefslogtreecommitdiff
path: root/gst/pygstminiobject.c
AgeCommit message (Collapse)AuthorFilesLines
2008-06-26gst/: Fix double-import issues on macosx.Edward Hervey1-0/+1
Original commit message from CVS: * gst/common.h: * gst/gstmodule.c: * gst/interfaces.override: * gst/pbutils.override: * gst/pygstiterator.c: * gst/pygstminiobject.c: * gst/pygstminiobject.h: Fix double-import issues on macosx. Fixes #461838
2007-10-08gst/pygstminiobject.c: Move up variable declaration to the top of the function.Sébastien Moutte1-2/+2
Original commit message from CVS: * gst/pygstminiobject.c: (pygstminiobject_dealloc): Move up variable declaration to the top of the function. * win32/vs6/gst_python.dsw: * win32/vs6/libgstpython.dsp: * win32/vs6/pygenfiles.dsp: * win32/MANIFEST Add new project files to build with VS6.
2007-08-16gst/: Make ro memory to share.Stefan Kost1-4/+4
Original commit message from CVS: * ChangeLog: * gst/pygstminiobject.c: Make ro memory to share.
2005-10-27gst/: remove the hash table for miniobjects - since we can't get notified ↵Thomas Vander Stichele1-78/+27
when they get destroyed, we shouldn't be ca... Original commit message from CVS: * gst/gst.override: * gst/pygstminiobject.c: remove the hash table for miniobjects - since we can't get notified when they get destroyed, we shouldn't be caching pointer mappings * testsuite/test_pad.py: update refcount tests because mini objects now have a ref for each time an object is made for it
2005-10-12Reordering header inclusion order to fix build on my machine.Julien Moutte1-1/+2
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-11gst/common.h: cleanupEdward Hervey1-7/+11
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-07gst/pygstminiobject.c: Comments to better track the creation/destruction of ↵Edward Hervey1-1/+7
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-06gst/gstbuffer.override: Proper wrapping of the GstBuffer.caps attributeEdward Hervey1-2/+0
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-06gst/pygstminiobject.c: Dooh, PyGstMiniObject doesn't need cyclic garbage ↵Edward Hervey1-59/+17
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-09-28codegen/argtypes.py: Proper handling of 'caller-owns-return' for miniobjectsEdward Hervey1-49/+0
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-01add a .data to buffers; it feels more natural to me than doing str(buffer) ↵Thomas Vander Stichele1-8/+8
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-01fix a race condition in test_buffer.pyThomas Vander Stichele1-50/+63
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-07-13gst/gstbus.override: Raise an exception if the callback doesn't return anythingEdward Hervey1-17/+0
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-12gst/gst.override: removed deprecated wrappers (gst_event_new_any*)Edward Hervey1-35/+64
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-12gst/: Added GError wrapping,Edward Hervey1-2/+12
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-05gst/: Proper registration of PyGstMiniObject classes in order to be able to ↵Edward Hervey1-8/+21
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-06-28gst/pygstminiobject.c: thread safe handling of mini-objectsEdward Hervey1-2/+24
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-28codegen/codegen.py: let's not forget to wrap the MiniObject :)Edward Hervey1-19/+61
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-26codegen/: Updated codegen to support miniobjectEdward Hervey1-0/+393
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()