From 63c01eeacb6c61ae35f025d3e5ce1e390217e253 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 21 Mar 2008 15:52:14 +0000 Subject: 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. --- gst/gstregistrybinary.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gst/gstregistrybinary.h') 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 #include +#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: * -- cgit v1.2.1