mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
add getters for values
Original commit message from CVS: add getters for values
This commit is contained in:
parent
e370eb0d6d
commit
62fdff7a0b
1 changed files with 11 additions and 0 deletions
|
@ -143,6 +143,17 @@ gst_dparam_get_property (GObject *object, guint prop_id, GValue *value, GParamSp
|
|||
dparam = GST_DPARAM(object);
|
||||
|
||||
switch (prop_id) {
|
||||
case ARG_VALUE_FLOAT:
|
||||
g_value_set_float (value, dparam->value_float);
|
||||
break;
|
||||
|
||||
case ARG_VALUE_INT:
|
||||
g_value_set_float (value, dparam->value_int);
|
||||
break;
|
||||
|
||||
case ARG_VALUE_INT64:
|
||||
g_value_set_float (value, dparam->value_int64);
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue