mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-31 20:48:56 +00:00
gst/gstvalue.c: Register these types as fundamental types. (bug #140015)
Original commit message from CVS: * gst/gstvalue.c: (gst_value_serialize_buffer), (gst_value_deserialize_buffer), (_gst_value_initialize): Register these types as fundamental types. (bug #140015)
This commit is contained in:
parent
266cff34c7
commit
06940084e5
2 changed files with 25 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-04-15 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
|
* gst/gstvalue.c: (gst_value_serialize_buffer),
|
||||||
|
(gst_value_deserialize_buffer), (_gst_value_initialize):
|
||||||
|
Register these types as fundamental types. (bug #140015)
|
||||||
|
|
||||||
2004-04-16 Benjamin Otte <otte@gnome.org>
|
2004-04-16 Benjamin Otte <otte@gnome.org>
|
||||||
|
|
||||||
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_new),
|
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_new),
|
||||||
|
|
|
@ -1569,6 +1569,14 @@ gst_value_deserialize (GValue * dest, const gchar * src)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
_GST_TYPE_FOURCC = G_TYPE_RESERVED_USER_FIRST,
|
||||||
|
_GST_TYPE_INT_RANGE,
|
||||||
|
_GST_TYPE_DOUBLE_RANGE,
|
||||||
|
_GST_TYPE_VALUE_LIST
|
||||||
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
_gst_value_initialize (void)
|
_gst_value_initialize (void)
|
||||||
{
|
{
|
||||||
|
@ -1584,6 +1592,9 @@ _gst_value_initialize (void)
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
GTypeFundamentalInfo finfo = {
|
||||||
|
0
|
||||||
|
};
|
||||||
|
|
||||||
//const GTypeFundamentalInfo finfo = { G_TYPE_FLAG_DERIVABLE, };
|
//const GTypeFundamentalInfo finfo = { G_TYPE_FLAG_DERIVABLE, };
|
||||||
|
|
||||||
|
@ -1612,8 +1623,8 @@ _gst_value_initialize (void)
|
||||||
};
|
};
|
||||||
|
|
||||||
info.value_table = &value_table;
|
info.value_table = &value_table;
|
||||||
gst_type_fourcc =
|
gst_type_fourcc = g_type_register_fundamental (g_type_fundamental_next (),
|
||||||
g_type_register_static (G_TYPE_BOXED, "GstFourcc", &info, 0);
|
"GstFourcc", &info, &finfo, 0);
|
||||||
gst_value.type = gst_type_fourcc;
|
gst_value.type = gst_type_fourcc;
|
||||||
gst_value_register (&gst_value);
|
gst_value_register (&gst_value);
|
||||||
}
|
}
|
||||||
|
@ -1638,7 +1649,8 @@ _gst_value_initialize (void)
|
||||||
|
|
||||||
info.value_table = &value_table;
|
info.value_table = &value_table;
|
||||||
gst_type_int_range =
|
gst_type_int_range =
|
||||||
g_type_register_static (G_TYPE_BOXED, "GstIntRange", &info, 0);
|
g_type_register_fundamental (g_type_fundamental_next (), "GstIntRange",
|
||||||
|
&info, &finfo, 0);
|
||||||
gst_value.type = gst_type_int_range;
|
gst_value.type = gst_type_int_range;
|
||||||
gst_value_register (&gst_value);
|
gst_value_register (&gst_value);
|
||||||
}
|
}
|
||||||
|
@ -1663,7 +1675,8 @@ _gst_value_initialize (void)
|
||||||
|
|
||||||
info.value_table = &value_table;
|
info.value_table = &value_table;
|
||||||
gst_type_double_range =
|
gst_type_double_range =
|
||||||
g_type_register_static (G_TYPE_BOXED, "GstDoubleRange", &info, 0);
|
g_type_register_fundamental (g_type_fundamental_next (),
|
||||||
|
"GstDoubleRange", &info, &finfo, 0);
|
||||||
gst_value.type = gst_type_double_range;
|
gst_value.type = gst_type_double_range;
|
||||||
gst_value_register (&gst_value);
|
gst_value_register (&gst_value);
|
||||||
}
|
}
|
||||||
|
@ -1687,8 +1700,8 @@ _gst_value_initialize (void)
|
||||||
};
|
};
|
||||||
|
|
||||||
info.value_table = &value_table;
|
info.value_table = &value_table;
|
||||||
gst_type_list =
|
gst_type_list = g_type_register_fundamental (g_type_fundamental_next (),
|
||||||
g_type_register_static (G_TYPE_BOXED, "GstValueList", &info, 0);
|
"GstValueList", &info, &finfo, 0);
|
||||||
gst_value.type = gst_type_list;
|
gst_value.type = gst_type_list;
|
||||||
gst_value_register (&gst_value);
|
gst_value_register (&gst_value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue