summaryrefslogtreecommitdiff
path: root/gst/gstregistrybinary.h
Commit message (Collapse)AuthorAgeFilesLines
* registrybinary: small cleanupsStefan Kost2011-05-241-2/+2
| | | | Remove unneeded braces from string define. Small doc improvement.
* binaryregistry: save and load release date time in GstPluginDescTim-Philipp Müller2010-07-231-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623040
* binaryregistry: ignore the plugin cache if the filter environment has changedTim-Philipp Müller2010-06-231-1/+1
| | | | | Make sure that we properly update the registry and the cache file whenever the filter environment changes or there's no more filter set.
* Make code safe for -Wredundant-declsBenjamin Otte2010-03-101-4/+0
| | | | | | | | | Adds that warning to configure.ac Includes a tiny change of the GST_BOILERPLATE_FULL() macro: The get_type() function is no longer declared before being defined. https://bugzilla.gnome.org/show_bug.cgi?id=611692
* registry: Add registry helper phase 1Jan Schmidt2009-10-061-108/+4
| | | | Phase 1 of adding the registry scan helper
* Make sure config.h is only included onceTim-Philipp Müller2009-06-101-4/+0
| | | | Fixes build problem on win32 (#585075).
* registry: allow plugins to cache extra data in registry. Fixes #570233Stefan Kost2009-06-071-1/+1
| | | | | Add a GstStructure to GstPlugin. Plugins can retieve it in plugin_init and access the cached info or build the cache and store it there.
* Add API for making a GStreamer plugin 'dependent' on external files, ↵Tim-Philipp Müller2009-01-061-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | directories or environment variables, so that GS... Original commit message from CVS: * docs/gst/gstreamer-sections.txt:: * gst/gst_private.h: (GstPluginDep), (_GstPluginPrivate): * gst/gstplugin.c: (gst_plugin_init), (gst_plugin_finalize), (gst_plugin_class_init), (gst_plugin_list_free), (gst_plugin_ext_dep_get_env_vars_hash), (_priv_plugin_deps_env_vars_changed), (gst_plugin_ext_dep_extract_env_vars_paths), (gst_plugin_ext_dep_get_hash_from_stat_entry), (gst_plugin_ext_dep_direntry_matches), (gst_plugin_ext_dep_scan_dir_and_match_names), (gst_plugin_ext_dep_scan_path_with_filenames), (gst_plugin_ext_dep_get_stat_hash), (_priv_plugin_deps_files_changed), (gst_plugin_ext_dep_free), (gst_plugin_ext_dep_strv_equal), (gst_plugin_ext_dep_equals), (gst_plugin_add_dependency), (gst_plugin_add_dependency_simple): * gst/gstplugin.h: (GstPluginPrivate), (GstPluginFlags), (GST_PLUGIN_DEPENDENCY_FLAG_NONE), (GST_PLUGIN_DEPENDENCY_FLAG_RECURSE), (GST_PLUGIN_DEPENDENCY_FLAG_PATHS_ARE_DEFAULT_ONLY), (GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_SUFFIX), (GstPluginDependencyFlags), (GstPluginFilter): * gst/gstregistry.c: (gst_registry_scan_path_level): * gst/gstregistrybinary.c: (gst_registry_binary_save_feature), (gst_registry_binary_save_plugin_dep), (gst_registry_binary_save_plugin), (gst_registry_binary_load_feature), (gst_registry_binary_load_plugin_dep_strv), (gst_registry_binary_load_plugin_dep), (gst_registry_binary_load_plugin): * gst/gstregistrybinary.h: (GST_MAGIC_BINARY_VERSION_STR), (GstBinaryPluginElement), (_GstBinaryDep), (GstBinaryDep): * gst/gstregistryxml.c: (gst_registry_xml_save_plugin): Add API for making a GStreamer plugin 'dependent' on external files, directories or environment variables, so that GStreamer knows when it needs to re-load GStreamer plugins that wrap other plugin systems. Fixes bug #350477. API: add gst_plugin_add_dependency() API: add gst_plugin_add_dependency_simple()
* gst/gstregistrybinary.*: Don't write and check a CRC for the binary registry ↵Sebastian Dröge2008-11-121-2/+1
| | | | | | | | | | | | | | | | | | | | file. It's guaranteed that the registry ... Original commit message from CVS: * gst/gstregistrybinary.c: (gst_registry_binary_write_chunk), (gst_registry_binary_initialize_magic), (gst_registry_binary_write_cache), (gst_registry_binary_check_magic): * gst/gstregistrybinary.h: Don't write and check a CRC for the binary registry file. It's guaranteed that the registry is completely written (it's first written to a temporary file and then moved) and if the registry was corrupted by some hardware failure we would have bigger problems. Bump binary registry version to 0.10.21.1 for this as it's an incompatible change and to ensure that the registry gets rebuild after the update. This saves some milliseconds for reading/writing the registry. Fixes bug #560399.
* gst/gstregistrybinary.*: Add crc32 checksum to the binary registry file and ↵Sebastian Dröge2008-04-161-1/+2
| | | | | | | | | | | | | | | | check this before accepting a registry file. Original commit message from CVS: * gst/gstregistrybinary.c: (_gst_crc32), (gst_registry_binary_write), (gst_registry_binary_initialize_magic), (gst_registry_binary_write_cache), (gst_registry_binary_check_magic), (gst_registry_binary_read_cache): * gst/gstregistrybinary.h: Add crc32 checksum to the binary registry file and check this before accepting a registry file. Also free the data list when writing to the registry file fails.
* gst/gstregistrybinary.c: Align memory to the pointer size instead of always ↵Sebastian Dröge2008-03-231-1/+1
| | | | | | | | | | | | | | | | | 32 bit. Fixes unaligned memory accesses o... Original commit message from CVS: * gst/gstregistrybinary.c: (gst_registry_binary_write), (gst_registry_binary_check_magic), (gst_registry_binary_load_pad_template), (gst_registry_binary_load_feature), (gst_registry_binary_load_plugin): Align memory to the pointer size instead of always 32 bit. Fixes unaligned memory accesses on ia64 and friends. * gst/gstregistrybinary.h: Bump binary registry format version for this as it changes the format on those architectures that don't have unaligned access and 64 bit pointers.
* Call the version GST_MAGIC_BINARY_VERSION_STR to be more consistent and add ↵Sebastian Dröge2008-03-211-2/+2
| | | | | | | | | | | | it to the (private part) of the docs to f... Original commit message from CVS: * docs/gst/gstreamer-sections.txt: * gst/gstregistrybinary.c: (gst_registry_binary_initialize_magic), (gst_registry_binary_check_magic): * gst/gstregistrybinary.h: Call the version GST_MAGIC_BINARY_VERSION_STR to be more consistent and add it to the (private part) of the docs to fix the build.
* gst/gstregistrybinary.*: Don't use GST_MAJORMINOR for the binary registry ↵Sebastian Dröge2008-03-211-0/+14
| | | | | | | | | | | | | | | version. Instead hardcode a value that must... Original commit message from CVS: * gst/gstregistrybinary.c: (gst_registry_binary_initialize_magic), (gst_registry_binary_check_magic), (gst_registry_binary_read_cache): * gst/gstregistrybinary.h: Don't use GST_MAJORMINOR for the binary registry version. Instead hardcode a value that must be changed whenever the format changes in an incompatible way. Also don't GST_ERROR when there is a version mismatch, just regenerate the registry silently.
* gst/gstregistrybinary.*: Implement no-mmap alternative for registry reading. ↵Stefan Kost2007-04-261-1/+0
| | | | | | | | | | | | | | Do code cleanups. Original commit message from CVS: * gst/gstregistrybinary.c: (gst_registry_binary_write_cache), (gst_registry_binary_load_pad_template), (gst_registry_binary_load_plugin), (gst_registry_binary_read_cache): * gst/gstregistrybinary.h: Implement no-mmap alternative for registry reading. Do code cleanups. Add more comments about avoiding strdups for all text data. Comments welcome.
* gst/gstregistrybinary.h (GstBinaryPluginElement,Stefan Kost2007-04-251-6/+20
| | | | | | | | | Original commit message from CVS: * gst/gstregistrybinary.h (GstBinaryPluginElement, GstBinaryPluginFeature, _GstBinaryElementFactory, plugin_feature, GstBinaryElementFactory, _GstBinaryTypeFindFactory, plugin_feature): Comment structs and reformat to fix the build (that stuff should go into a priv. header).
* gst/gstregistrybinary.*: Refactor so that we can implement multiple ↵Stefan Kost2007-04-251-6/+15
| | | | | | | | | | | features. Add support for Original commit message from CVS: * gst/gstregistrybinary.c: (gst_registry_binary_save_feature), (gst_registry_binary_load_feature): * gst/gstregistrybinary.h: Refactor so that we can implement multiple features. Add support for TypeFindFactory features.
* gst/gstregistrybinary.*: Remove unnecessary <sys/mman.h> include which broke ↵Tim-Philipp Müller2007-04-161-30/+4
| | | | | | | | | | | | | the win32 build with MingW; move include... Original commit message from CVS: * gst/gstregistrybinary.c: (gst_registry_binary_write_cache), (gst_registry_binary_read_cache): * gst/gstregistrybinary.h: Remove unnecessary <sys/mman.h> include which broke the win32 build with MingW; move includes from header file to .c file, even if the header file isn't installed; use g_strerror() where UTF-8 strings are expected, such as in GST_DEBUG messages.
* gst/gstregistrybinary.*: use glib types, cleanup comments, impement ↵Stefan Kost2007-01-151-46/+37
| | | | | | | | | | | | | | | | | | | | interfaces and uri-types Original commit message from CVS: * gst/gstregistrybinary.c: (gst_registry_binary_write), (gst_registry_binary_initialize_magic), (gst_registry_binary_save_string), (gst_registry_binary_make_data), (gst_registry_binary_save_pad_template), (gst_registry_binary_save_feature), (gst_registry_binary_save_plugin), (gst_registry_binary_write_cache), (gst_registry_binary_check_magic), (gst_registry_binary_load_pad_template), (gst_registry_binary_load_feature), (gst_registry_binary_load_plugin), (gst_registry_binary_read_cache): * gst/gstregistrybinary.h: use glib types, cleanup comments, impement interfaces and uri-types
* commit binary registry (disabled by default, see #359653)Stefan Kost2007-01-111-0/+173
Original commit message from CVS: * configure.ac: * docs/gst/gstreamer-sections.txt: * gst/Makefile.am: * gst/gstregistry.c: (gst_registry_lookup_feature_locked), (gst_registry_lookup_locked): * gst/gstregistry.h: * gst/gstregistrybinary.c: (gst_registry_binary_write), (gst_registry_binary_initialize_magic), (gst_registry_binary_save_string), (gst_registry_binary_save_pad_template), (gst_registry_binary_save_feature), (gst_registry_binary_save_plugin), (gst_registry_binary_write_cache), (gst_registry_binary_check_magic), (gst_registry_binary_load_pad_template), (gst_registry_binary_load_feature), (gst_registry_binary_load_plugin), (gst_registry_binary_read_cache): * gst/gstregistrybinary.h: * gst/gstregistryxml.c: (load_feature), (gst_registry_xml_read_cache): commit binary registry (disabled by default, see #359653)