gstvalue: Don't initialize arrays from variables

This commit is contained in:
Sebastian Dröge 2010-06-14 08:18:00 +02:00
parent 6fd7c5bda0
commit 603c04f4fa

View file

@ -686,13 +686,13 @@ gst_value_transform_fourcc_string (const GValue * src_value,
GValue * dest_value)
{
guint32 fourcc = src_value->data[0].v_int;
gchar fourcc_char[4];
fourcc_char[0] = (fourcc >> 0) & 0xff;
fourcc_char[1] = (fourcc >> 8) & 0xff;
fourcc_char[2] = (fourcc >> 16) & 0xff;
fourcc_char[3] = (fourcc >> 24) & 0xff;
gchar fourcc_char[4] = {
(fourcc >> 0) & 0xff,
(fourcc >> 8) & 0xff,
(fourcc >> 16) & 0xff,
(fourcc >> 24) & 0xff
};
if ((g_ascii_isalnum (fourcc_char[0]) || fourcc_char[0] == ' ') &&
(g_ascii_isalnum (fourcc_char[1]) || fourcc_char[1] == ' ') &&
(g_ascii_isalnum (fourcc_char[2]) || fourcc_char[2] == ' ') &&
@ -716,13 +716,13 @@ static gchar *
gst_value_serialize_fourcc (const GValue * value)
{
guint32 fourcc = value->data[0].v_int;
gchar fourcc_char[4];
fourcc_char[0] = (fourcc >> 0) & 0xff;
fourcc_char[1] = (fourcc >> 8) & 0xff;
fourcc_char[2] = (fourcc >> 16) & 0xff;
fourcc_char[3] = (fourcc >> 24) & 0xff;
gchar fourcc_char[4] = {
(fourcc >> 0) & 0xff,
(fourcc >> 8) & 0xff,
(fourcc >> 16) & 0xff,
(fourcc >> 24) & 0xff
};
if ((g_ascii_isalnum (fourcc_char[0]) || fourcc_char[0] == ' ') &&
(g_ascii_isalnum (fourcc_char[1]) || fourcc_char[1] == ' ') &&
(g_ascii_isalnum (fourcc_char[2]) || fourcc_char[2] == ' ') &&