gst/gstvalue.*: Drop leading '%' from GST_FOURCC_FORMAT, thus making it consistent...
authorTim-Philipp Müller <tim@centricular.net>
Mon, 21 Nov 2005 13:26:40 +0000 (13:26 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 21 Nov 2005 13:26:40 +0000 (13:26 +0000)
Original commit message from CVS:
* gst/gstvalue.c: (gst_value_transform_fourcc_string),
(gst_value_serialize_fourcc):
* gst/gstvalue.h:
Drop leading '%' from GST_FOURCC_FORMAT, thus making it
consistent with our other format defines (#320324).

ChangeLog
gst/gstvalue.c
gst/gstvalue.h

index 3b23062..8716011 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2005-11-21  Tim-Philipp Müller  <tim at centricular dot net>
 
+       * gst/gstvalue.c: (gst_value_transform_fourcc_string),
+       (gst_value_serialize_fourcc):
+       * gst/gstvalue.h:
+         Drop leading '%' from GST_FOURCC_FORMAT, thus making it
+         consistent with our other format defines (#320324).
+
+2005-11-21  Tim-Philipp Müller  <tim at centricular dot net>
+
        * gst/gstvalue.c: (gst_value_is_fixed):
          Revert previous commit. Value lists are by definition
          not fixed, as they are a list of possible values.
index 4513c32..5267079 100644 (file)
@@ -580,7 +580,7 @@ gst_value_transform_fourcc_string (const GValue * src_value,
       g_ascii_isprint ((fourcc >> 16) & 0xff) &&
       g_ascii_isprint ((fourcc >> 24) & 0xff)) {
     dest_value->data[0].v_pointer =
-        g_strdup_printf (GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
+        g_strdup_printf ("%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
   } else {
     dest_value->data[0].v_pointer = g_strdup_printf ("0x%08x", fourcc);
   }
@@ -603,7 +603,7 @@ gst_value_serialize_fourcc (const GValue * value)
       g_ascii_isalnum ((fourcc >> 8) & 0xff) &&
       g_ascii_isalnum ((fourcc >> 16) & 0xff) &&
       g_ascii_isalnum ((fourcc >> 24) & 0xff)) {
-    return g_strdup_printf (GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
+    return g_strdup_printf ("%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
   } else {
     return g_strdup_printf ("0x%08x", fourcc);
   }
index 16b9962..30c17ec 100644 (file)
@@ -69,7 +69,7 @@ G_BEGIN_DECLS
  * </programlisting>
  * </informalexample>
  */
-#define GST_FOURCC_FORMAT "%c%c%c%c"
+#define GST_FOURCC_FORMAT "c%c%c%c"
 
 /**
  * GST_FOURCC_ARGS: