summaryrefslogtreecommitdiff
path: root/gst/gsttypefind.c
Commit message (Collapse)AuthorAgeFilesLines
* Add few missing allow-none annotationNicolas Dufresne2013-07-031-2/+2
|
* Fix FSF addressTim-Philipp Müller2012-11-031-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=687520
* Remove 0.10-related documentation and "Since" markersEdward Hervey2012-07-101-4/+1
|
* typefind: remove const from refcounted GstCapsWim Taymans2012-03-101-2/+1
| | | | | Having const on refcounted objects require us to make copies instead of simply taking a ref, don't do that.
* typefind: pass extensions as comma-separated list in a simple stringTim-Philipp Müller2012-02-021-5/+8
| | | | | | Fix annoying gst_type_find_register() function signature. A simple string with comma-separated extensions works just as well and saves lines of code, casts, relocations and ultimately kittens.
* Use macros to register boxed types thread safelyOlivier Crête2012-01-281-10/+1
|
* registry: rename gst_registry_get_default() to gst_registry_get()Tim-Philipp Müller2012-01-021-1/+1
| | | | | | It's not really a default if there is only one that can't be changed. Should we return a ref like e.g. g_volume_monitor_get() does?
* remove const in gst_type_find_register()Wim Taymans2011-12-201-2/+2
| | | | | Remove the const from the GstCaps in gst_type_find_register() because the function takes a ref to the caps.
* Merge branch 'master' into 0.11Wim Taymans2011-04-251-0/+4
|\
| * pluginfeature: store pointer to plugin in addition to the plugin nameTim-Philipp Müller2011-04-241-0/+4
| | | | | | | | | | | | So we can reliably remove plugin features for a specific plugin later. https://bugzilla.gnome.org/show_bug.cgi?id=604094
* | memory: port code to new buffer data APIWim Taymans2011-03-281-1/+1
|/
* docs: gst: more gobject introspection annotationsTim-Philipp Müller2010-12-071-2/+4
| | | | Many of these are superfluous, added for clarity.
* gsttypefind: avoid one more run-time type checkTim-Philipp Müller2009-11-021-1/+1
|
* gsttypefind: Use _CAST variants when the type has alredy been checked.Edward Hervey2009-11-021-5/+5
| | | | | This avoids checking the type n_typefinders * 4 times when loading the registry.
* optimisation : Use g_object_newv where possible.Edward Hervey2009-10-281-1/+1
| | | | | | | | This avoids: * triple-checking for the GType when type-checking is enabled (see #597260) * Avoids going through an expensive no-argument checking which landed in glib-2.22 * Avoids going through 2 extrac functions (g_object_new -> g_object_new_valist)
* Allow adding a typefinder without a typefind function so that it can be usedWim Taymans2009-01-211-1/+0
| | | | to map the caps to the extension. See #566661.
* gst/gstpreset.c: Use g_unlink instead of unlink.Stefan Kost2008-10-311-2/+3
| | | | | | | | | | | | | | Original commit message from CVS: * gst/gstpreset.c: Use g_unlink instead of unlink. * gst/gststructure.c: Use glib type. * gst/gstutils.c: Add a FIXME:. * gst/gsttaglist.c: * gst/gsttypefind.c: * gst/gstvalue.c: Formatting & whitespaces.
* API: add gst_type_find_suggest_simple(), #533740.Tim-Philipp Müller2008-05-191-0/+51
| | | | | | | | | Original commit message from CVS: * docs/gst/gstreamer-sections.txt: * gst/gsttypefind.c: (gst_type_find_suggest_simple): * gst/gsttypefind.h: * win32/common/libgstreamer.def: API: add gst_type_find_suggest_simple(), #533740.
* gst/gsttypefind.c: Make gst_type_find_register work for static typefind ↵Tim-Philipp Müller2007-12-211-3/+7
| | | | | | | | | | | functions, ie. allow passing plugin == NULL (... Original commit message from CVS: * gst/gsttypefind.c: (gst_type_find_register): Make gst_type_find_register work for static typefind functions, ie. allow passing plugin == NULL (prerequisite for #498924). * gst/gstelementfactory.c: (gst_element_register): Small docs addition.
* Makefile.am: Add check-exports target and run it as part of 'make check' ↵Tim-Philipp Müller2007-12-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (see #499140 and #493983). Original commit message from CVS: * Makefile.am: Add check-exports target and run it as part of 'make check' (see #499140 and #493983). * gst/gst_private.h: * gst/gstelementfactory.h: * gst/gstghostpad.c: (gst_proxy_pad_class_init): * gst/gstinfo.c: (_priv_gst_in_valgrind), (_gst_debug_init), (_priv_gst_in_valgrind): * gst/gstinfo.h: (GstLogFunction): * gst/gsttypefind.c: (type_find_debug), (GST_CAT_DEFAULT), (gst_type_find_register): * gst/gsttypefindfactory.c: (type_find_debug), (GST_CAT_DEFAULT), (gst_type_find_factory_get_type): * libs/gst/controller/gstcontroller.c: (GST_CAT_DEFAULT), (GST_CAT_DEFAULT), (parent_class), (priv_gst_controller_key), (gst_controller_new_valist), (gst_controller_new_list), (_gst_controller_dispose), (_gst_controller_class_init): * libs/gst/controller/gstcontrolsource.c: (GST_CAT_DEFAULT): * libs/gst/controller/gsthelper.c: (GST_CAT_DEFAULT), (GST_CAT_DEFAULT), (gst_object_uncontrol_properties), (gst_object_get_controller), (gst_object_set_controller), (gst_object_suggest_next_sync), (gst_object_sync_values), (gst_object_set_control_source), (gst_object_get_control_source), (gst_object_get_value_arrays), (gst_object_get_value_array), (gst_object_get_control_rate), (gst_object_set_control_rate): * libs/gst/controller/gstinterpolation.c: (GST_CAT_DEFAULT): * libs/gst/controller/lib.c: (GST_CAT_DEFAULT): Make some functions that should be static static; rename some private symbols so that they don't get exported; add some FIXME comments so we can move accidentally exported functions into our private section in 0.11. * win32/common/libgstreamer.def: Add gst_utils_get_timestamp().
* gst/: Use already-interned string for the private GstPluginFeature ↵Tim-Philipp Müller2007-10-131-1/+1
| | | | | | | | | | | | | | plugin_name field. Original commit message from CVS: * gst/gstelementfactory.c: * gst/gstpluginfeature.c: * gst/gstpluginfeature.h: * gst/gstregistrybinary.c: * gst/gstregistryxml.c: * gst/gsttypefind.c: Use already-interned string for the private GstPluginFeature plugin_name field.
* doc indent fixThomas Vander Stichele2006-05-241-1/+2
| | | | | Original commit message from CVS: doc indent fix
* gst/gsttypefind.*: Added GST_TYPE_TYPE_FIND and gst_type_find_get_type() so ↵Edward Hervey2006-05-181-0/+11
| | | | | | | | | | | a GType gets registered for GstTypeFind p... Original commit message from CVS: * gst/gsttypefind.c: (gst_type_find_get_type): * gst/gsttypefind.h: Added GST_TYPE_TYPE_FIND and gst_type_find_get_type() so a GType gets registered for GstTypeFind pointers. This allows wrapping the structure in bindings (i.e. gst-python).
* expand tabsThomas Vander Stichele2005-12-061-2/+2
| | | | | Original commit message from CVS: expand tabs
* gst/: Fix memory leak in GstTypeFindFactory.Edward Hervey2005-11-291-1/+4
| | | | | | | | | | Original commit message from CVS: * gst/gsttypefind.c: (gst_type_find_register): * gst/gsttypefind.h: * gst/gsttypefindfactory.c: (gst_type_find_factory_init), (gst_type_find_factory_dispose): * gst/gsttypefindfactory.h: Fix memory leak in GstTypeFindFactory.
* gst/: Edward Hervey2005-11-091-25/+28
| | | | | | | Original commit message from CVS: * gst/base/gsttypefindhelper.c: * gst/gsttypefind.c: * gst/gsttypefind.h:
* various style fixesThomas Vander Stichele2005-10-151-0/+1
| | | | | Original commit message from CVS: various style fixes
* whitespace fixesThomas Vander Stichele2005-10-151-5/+5
| | | | | Original commit message from CVS: whitespace fixes
* check/Makefile.am: Fix environment variables.David Schleef2005-09-181-1/+5
| | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * check/Makefile.am: Fix environment variables. * check/gst/gstplugin.c: Fix for API changes. * tools/gst-inspect.c: Fix for API changes. * tools/gst-xmlinspect.c: Fix for API changes. * gst/gstelementfactory.c: * gst/gstplugin.c: * gst/gstplugin.h: * gst/gstpluginfeature.c: * gst/gstpluginfeature.h: * gst/gstregistry.c: * gst/gstregistry.h: * gst/gstregistryxml.c: * gst/gsttypefind.c: * gst/gsttypefindfactory.c: * gst/indexers/gstfileindex.c: * gst/indexers/gstmemindex.c: * gst/schedulers/Makefile.am: Change registry to keep track of both plugins and features, removing the feature tracking from plugins themselves.
* check/gst/gstplugin.c: More testingDavid Schleef2005-09-161-12/+6
| | | | | | | | | | | Original commit message from CVS: * check/gst/gstplugin.c: (register_check_elements), (GST_START_TEST), (peek), (suggest), (gst_plugin_suite): More testing * gst/elements/gsttypefindelement.c: Fix refcounting. * gst/gsttypefind.c: * gst/gsttypefindfactory.c: * gst/gsttypefindfactory.h:
* removeDavid Schleef2005-09-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * check/Makefile.am: * check/generic/states.c: * gst/Makefile.am: * gst/gst.c: * gst/gst.h: * gst/gst_private.h: * gst/gstelementfactory.c: * gst/gstindex.c: * gst/gstinfo.c: * gst/gstplugin.c: * gst/gstplugin.h: * gst/gstpluginfeature.c: * gst/gstpluginfeature.h: * gst/gstregistry.c: * gst/gstregistry.h: * gst/gstregistrypool.c: remove * gst/gstregistrypool.h: remove * gst/gsttypefind.c: * gst/gsttypefindfactory.c: * gst/gsturi.c: * tools/Makefile.am: * tools/gst-compprep.c: * tools/gst-inspect.c: * tools/gst-register.c: remove * tools/gst-xmlinspect.c: Registry rewrite. Changes registry from being a file created by a tool into a simple cache file created automatically by libgstreamer. Removed gst-register (because it's no longer needed). Remove registry pools, because we only have one registry implementation (XML). Fix up other subsystems as necessary.
* gst/: splitted gsttypefind into gsttypefind, gsttypefindfactoryStefan Kost2005-09-071-235/+3
| | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * gst/Makefile.am: * gst/elements/gstbufferstore.h: * gst/elements/gsttypefindelement.c: * gst/elements/gsttypefindelement.h: * gst/gst.h: * gst/gsttypefind.c: * gst/gsttypefind.h: * gst/gsttypefindfactory.c: (gst_type_find_factory_get_type), (gst_type_find_factory_class_init), (gst_type_find_factory_init), (gst_type_find_factory_dispose), (gst_type_find_factory_unload_thyself), (gst_type_find_load_plugin), (gst_type_find_factory_get_list), (gst_type_find_factory_get_caps), (gst_type_find_factory_get_extensions), (gst_type_find_factory_call_function): * gst/gsttypefindfactory.h: * gst/registries/gstlibxmlregistry.c: * gst/registries/gstxmlregistry.c: splitted gsttypefind into gsttypefind, gsttypefindfactory
* check/pipelines/simple_launch_lines.c: test for pipe!=NULLStefan Kost2005-09-061-0/+63
| | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * check/pipelines/simple_launch_lines.c: (run_pipeline): test for pipe!=NULL * docs/gst/tmpl/.cvsignore: * docs/gst/tmpl/gstmemchunk.sgml: * docs/gst/tmpl/gstparse.sgml: * docs/gst/tmpl/gsttaglist.sgml: * docs/gst/tmpl/gsttagsetter.sgml: * docs/gst/tmpl/gsttypefind.sgml: * docs/gst/tmpl/gsttypefindfactory.sgml: * gst/gstmemchunk.c: * gst/gstparse.c: * gst/gsttag.c: * gst/gsttaginterface.c: * gst/gsttypefind.c: * gst/gsttypefind.h: inlined more docs
* gst/: Make gst_caps_replace() work like other _replace() functions.Wim Taymans2005-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original commit message from CVS: * gst/base/gstbasesink.c: (gst_basesink_base_init), (gst_basesink_pad_getcaps), (gst_basesink_init), (gst_basesink_chain_unlocked): * gst/base/gsttypefindhelper.c: (helper_find_suggest), (gst_type_find_helper): * gst/elements/gsttypefindelement.c: (gst_type_find_element_have_type), (gst_type_find_element_init), (stop_typefinding), (gst_type_find_element_handle_event), (find_suggest), (gst_type_find_element_chain), (gst_type_find_element_checkgetrange), (gst_type_find_element_getrange), (do_typefind), (gst_type_find_element_activate): * gst/gstbuffer.c: (_gst_buffer_sub_free), (gst_buffer_default_free), (gst_buffer_default_copy), (gst_buffer_set_caps): * gst/gstcaps.c: (gst_caps_ref), (gst_caps_unref), (gst_caps_replace): * gst/gstmessage.c: (gst_message_new), (gst_message_new_state_changed): * gst/gstpad.c: (gst_pad_set_active), (gst_pad_peer_set_active), (gst_pad_set_checkgetrange_function), (gst_pad_link_prepare_filtered), (gst_pad_relink_filtered), (gst_pad_set_caps), (gst_pad_check_pull_range), (gst_pad_pull_range), (gst_static_pad_template_get_caps): * gst/gstpad.h: * gst/gsttypefind.c: (gst_type_find_register): Make gst_caps_replace() work like other _replace() functions. Use _caps_replace() where possible. Make sure _message_new() initialises its field. Add gst_static_pad_template_get_caps()
* First THREADED backport attempt, focusing on adding locks and making sure ↵Wim Taymans2005-03-071-1/+1
| | | | | | | | | the API is threadsafe. Needs more work. Mor... Original commit message from CVS: First THREADED backport attempt, focusing on adding locks and making sure the API is threadsafe. Needs more work. More docs follow this week.
* gst/gstpad.c: check that caps are fixedBenjamin Otte2004-07-291-2/+1
| | | | | | | | | | | | | | | Original commit message from CVS: * gst/gstpad.c: (gst_pad_set_explicit_caps): check that caps are fixed * gst/gstpad.c: (gst_pad_template_new): don't try to simplify caps, costs too much time on gst_init * gst/gstplugin.c: (gst_plugin_add_feature): G_ERROR if features are added twice * gst/gsttypefind.c: (gst_type_find_register): * gst/gstelementfactory.c: (gst_element_register): don't add features twice * docs/random/ds/0.9-suggested-changes: add note about possible gst_init optimization
* remove gst_info remove gstlog.h, fold back to gstinfo.h update translationsThomas Vander Stichele2004-05-031-0/+1
| | | | | | | Original commit message from CVS: remove gst_info remove gstlog.h, fold back to gstinfo.h update translations
* don't mix tabs and spacesThomas Vander Stichele2004-03-151-4/+5
| | | | | Original commit message from CVS: don't mix tabs and spaces
* gst-indent run on coreThomas Vander Stichele2004-03-131-39/+51
| | | | | Original commit message from CVS: gst-indent run on core
* Merge CAPS branchDavid Schleef2003-12-221-10/+7
| | | | | Original commit message from CVS: Merge CAPS branch
* update plugin initialization restructuring (see email for detailsBenjamin Otte2003-10-311-8/+10
| | | | | Original commit message from CVS: update plugin initialization restructuring (see email for details
* Allow NULL to be a valid value for factory->extensions.David Schleef2003-10-291-1/+2
| | | | | Original commit message from CVS: Allow NULL to be a valid value for factory->extensions.
* merge TYPEFIND branch. Major changes:Benjamin Otte2003-10-281-187/+243
| | | | | | | | Original commit message from CVS: merge TYPEFIND branch. Major changes: - totally reworked type(find) system - bytestream is out of the core again - typefind element is now part of gstelements
* New typefind system: bytestream is now part of the core all plugins have ↵Ronald S. Bultje2003-10-011-54/+37
| | | | | | | | | | | | | | | | | | | | | been modified to use this new typefind syste... Original commit message from CVS: New typefind system: * bytestream is now part of the core * all plugins have been modified to use this new typefind system * asf typefinding added * mpeg video stream typefiding removed because it's broken * duplicate typefind entries removed * extra id3 typefinding added, because we've seen 4 types of files (riff/wav, flac, vorbis, mp3) with id3 headers and each of these needs to work. Instead, I've added an id3 element and let it redo typefiding after the id3 header. this needs a hack because spider only typefinds once. We can remove this hack once spider supports multiple typefinds. * with all this, mp3 typefinding is semi-rewritten * id3 typefinding in flac/vorbis is removed, it's no longer needed * fixed spider and gst-typefind to use this, too. * Other general cleanups
* reverting error patches before making a branch.BRANCH-ERROR-ROOTBRANCH-ERRORThomas Vander Stichele2003-09-161-3/+2
| | | | | Original commit message from CVS: reverting error patches before making a branch.
* implement translatable error messages using gerror.Benjamin Otte2003-09-141-2/+3
| | | | | | | | | | Original commit message from CVS: implement translatable error messages using gerror. Includes bugfixes for: - crash when unlinking Ghostpads - make *_PAD_* macros use glib casts - make spider typefinding merge buffers correctly
* But you can't use G_TYPE_BOXED in a signal. Changing to G_TYPE_POINTER ↵David Schleef2003-07-241-1/+1
| | | | | | | | until code is added to register a type for Gs... Original commit message from CVS: But you can't use G_TYPE_BOXED in a signal. Changing to G_TYPE_POINTER until code is added to register a type for GstCaps.
* GST_DEBUG reorganization containing loads of stuff:Benjamin Otte2003-06-291-4/+4
| | | | | | | | | | | | | | | | Original commit message from CVS: GST_DEBUG reorganization This is a big diff (ca 450k), containing loads of stuff: - gstinfo.[ch] complete rewrite - changing of all GST_DEBUG messages to reflect that change - reorganization of subsystem disabling - addition of gstconfig.h.in so we can track the disablings - <gst/gst.h> does not include <unistd.h> and <config.h> anymore - documentation updated for gstinfo stuff (build the docs yourself to know what changed) - bugfixes for making of the docs (files from CVS are not deleted anymore - testsuite for debugging changes in testsuite/debug expect breakage
* GstCaps is not a GObject but a boxed-typeRonald S. Bultje2003-05-291-1/+1
| | | | | Original commit message from CVS: GstCaps is not a GObject but a boxed-type
* Fix type definition bug plus missing argument for callbackRonald S. Bultje2003-05-261-1/+1
| | | | | Original commit message from CVS: Fix type definition bug plus missing argument for callback