mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
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).
This commit is contained in:
parent
5012a8fddc
commit
d1d6357de1
3 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
|||
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):
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue