Call the version GST_MAGIC_BINARY_VERSION_STR to be more consistent and add it to...
authorSebastian Dröge <slomo@circular-chaos.org>
Fri, 21 Mar 2008 16:11:51 +0000 (16:11 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 21 Mar 2008 16:11:51 +0000 (16:11 +0000)
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.

ChangeLog
docs/gst/gstreamer-sections.txt
gst/gstregistrybinary.c
gst/gstregistrybinary.h

index b5d5254..4483a16 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2008-03-21  Sebastian Dröge  <slomo@circular-chaos.org>
 
+       * 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.
+
+2008-03-21  Sebastian Dröge  <slomo@circular-chaos.org>
+
        * gst/gstregistrybinary.c: (gst_registry_binary_initialize_magic),
        (gst_registry_binary_check_magic),
        (gst_registry_binary_read_cache):
index bb5780f..7807ef4 100644 (file)
@@ -1745,6 +1745,7 @@ GST_TYPE_REGISTRY
 <SUBSECTION Private>
 GST_MAGIC_BINARY_REGISTRY_LEN
 GST_MAGIC_BINARY_REGISTRY_STR
+GST_MAGIC_BINARY_VERSION_STR
 GST_MAGIC_BINARY_VERSION_LEN
 gst_registry_get_type
 </SECTION>
index bb8b6ee..02b0bd3 100644 (file)
@@ -145,7 +145,7 @@ gst_registry_binary_initialize_magic (GstBinaryRegistryMagic * m)
 {
   if (!strncpy (m->magic, GST_MAGIC_BINARY_REGISTRY_STR,
           GST_MAGIC_BINARY_REGISTRY_LEN)
-      || !strncpy (m->version, GST_MAGIC_BINARY_VERSION_STRING,
+      || !strncpy (m->version, GST_MAGIC_BINARY_VERSION_STR,
           GST_MAGIC_BINARY_VERSION_LEN)) {
     GST_ERROR ("Failed to write magic to the registry magic structure");
     return FALSE;
@@ -625,10 +625,10 @@ gst_registry_binary_check_magic (gchar ** in)
         m->magic[1] & 0xff, m->magic[2] & 0xff, m->magic[3] & 0xff);
     return -1;
   }
-  if (strncmp (m->version, GST_MAGIC_BINARY_VERSION_STRING,
+  if (strncmp (m->version, GST_MAGIC_BINARY_VERSION_STR,
           GST_MAGIC_BINARY_VERSION_LEN)) {
     GST_WARNING ("Binary registry magic version is different : %s != %s",
-        GST_MAGIC_BINARY_VERSION_STRING, m->version);
+        GST_MAGIC_BINARY_VERSION_STR, m->version);
     return -2;
   }
   return 0;
index 6b30877..c9c7995 100644 (file)
 #define GST_MAGIC_BINARY_REGISTRY_LEN (4)
 
 /*
- * GST_MAGIC_BINARY_VERSION_STRING:
+ * GST_MAGIC_BINARY_VERSION_STR:
  *
  * 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")
+#define GST_MAGIC_BINARY_VERSION_STR ("0.10.18")
 
 /*
  * GST_MAGIC_BINARY_VERSION_LEN: