From: Tim-Philipp Müller Date: Mon, 21 Nov 2005 13:26:40 +0000 (+0000) Subject: gst/gstvalue.*: Drop leading '%' from GST_FOURCC_FORMAT, thus making it consistent... X-Git-Tag: RELEASE-0_9_6~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1d6357de170ada339d0a040096a3203504bef61;p=platform%2Fupstream%2Fgstreamer.git gst/gstvalue.*: Drop leading '%' from GST_FOURCC_FORMAT, thus making it consistent with our other format defines (#32... 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). --- diff --git a/ChangeLog b/ChangeLog index 3b23062..8716011 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2005-11-21 Tim-Philipp Müller + * 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 + * 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. diff --git a/gst/gstvalue.c b/gst/gstvalue.c index 4513c32..5267079 100644 --- a/gst/gstvalue.c +++ b/gst/gstvalue.c @@ -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); } diff --git a/gst/gstvalue.h b/gst/gstvalue.h index 16b9962..30c17ec 100644 --- a/gst/gstvalue.h +++ b/gst/gstvalue.h @@ -69,7 +69,7 @@ G_BEGIN_DECLS * * */ -#define GST_FOURCC_FORMAT "%c%c%c%c" +#define GST_FOURCC_FORMAT "c%c%c%c" /** * GST_FOURCC_ARGS: