diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-03-21 15:52:14 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-03-21 15:52:14 +0000 |
commit | 63c01eeacb6c61ae35f025d3e5ce1e390217e253 (patch) | |
tree | 4d625438b751fa6810b4d1e4d25b7c2fdb824ae1 /gst/gstregistrybinary.h | |
parent | f654a1a18600a2cce2e063d17317bcb4b3bfa5b8 (diff) | |
download | gstreamer-63c01eeacb6c61ae35f025d3e5ce1e390217e253.tar.gz |
gst/gstregistrybinary.*: Don't use GST_MAJORMINOR for the binary registry 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.
Diffstat (limited to 'gst/gstregistrybinary.h')
-rw-r--r-- | gst/gstregistrybinary.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gst/gstregistrybinary.h b/gst/gstregistrybinary.h index 5bee537f9d..6b30877adf 100644 --- a/gst/gstregistrybinary.h +++ b/gst/gstregistrybinary.h @@ -33,6 +33,10 @@ #include <gst/gstpad.h> #include <gst/gstregistry.h> +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + /* * GST_MAGIC_BINARY_REGISTRY_STR: * @@ -45,6 +49,16 @@ * length of the header tag. */ #define GST_MAGIC_BINARY_REGISTRY_LEN (4) + +/* + * GST_MAGIC_BINARY_VERSION_STRING: + * + * The current version of the binary registry format. + * This _must_ be updated whenever the registry format changes, + * we currently use the core version where this change happened. + */ +#define GST_MAGIC_BINARY_VERSION_STRING ("0.10.18") + /* * GST_MAGIC_BINARY_VERSION_LEN: * |