mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
Added arg setting for UINT types.
Original commit message from CVS: Added arg setting for UINT types.
This commit is contained in:
parent
9bdf748820
commit
4594d70939
1 changed files with 6 additions and 0 deletions
|
@ -253,6 +253,12 @@ gst_util_set_object_arg (GObject *object, const gchar *name, const gchar *valu
|
||||||
g_object_set (G_OBJECT (object), name, i, NULL);
|
g_object_set (G_OBJECT (object), name, i, NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case G_TYPE_UINT: {
|
||||||
|
guint i;
|
||||||
|
sscanf (value, "%u", &i);
|
||||||
|
g_object_set (G_OBJECT (object), name, i, NULL);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case G_TYPE_LONG: {
|
case G_TYPE_LONG: {
|
||||||
glong i;
|
glong i;
|
||||||
sscanf (value, "%ld", &i);
|
sscanf (value, "%ld", &i);
|
||||||
|
|
Loading…
Reference in a new issue