mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
lfocontrolsource: Use correct setter for double GValues
This commit is contained in:
parent
e7a568a346
commit
69992811f4
1 changed files with 2 additions and 2 deletions
|
@ -866,12 +866,12 @@ gst_lfo_control_source_bind (GstControlSource * source, GParamSpec * pspec)
|
|||
g_value_set_double (&self->priv->maximum_value, tpspec->maximum);
|
||||
if (!G_IS_VALUE (&self->priv->amplitude)) {
|
||||
g_value_init (&self->priv->amplitude, type);
|
||||
g_value_set_float (&self->priv->amplitude, 0.0);
|
||||
g_value_set_double (&self->priv->amplitude, 0.0);
|
||||
}
|
||||
|
||||
if (!G_IS_VALUE (&self->priv->offset)) {
|
||||
g_value_init (&self->priv->offset, type);
|
||||
g_value_set_float (&self->priv->offset, tpspec->default_value);
|
||||
g_value_set_double (&self->priv->offset, tpspec->default_value);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue