mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
gstvalue: Don't initialize arrays from variables
This commit is contained in:
parent
6fd7c5bda0
commit
603c04f4fa
1 changed files with 12 additions and 12 deletions
|
@ -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] == ' ') &&
|
||||
|
|
Loading…
Reference in a new issue