mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
Explicitly define float constants as float
With MSVC, this gives the following warning: warning C4305: 'function': truncation from 'double' to 'gfloat' Apparently, MSVC does not figure out what type to use for constants based on the assignment. This warning is very spammy, so let's try to fix it.
This commit is contained in:
parent
37df358c5e
commit
4e4b568f65
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ gst_stereo_class_init (GstStereoClass * klass)
|
|||
|
||||
g_object_class_install_property (gobject_class, PROP_STEREO,
|
||||
g_param_spec_float ("stereo", "stereo", "stereo",
|
||||
0.0, 1.0, 0.1,
|
||||
0.0, 1.0, 0.1f,
|
||||
G_PARAM_READWRITE | GST_PARAM_CONTROLLABLE | G_PARAM_STATIC_STRINGS));
|
||||
|
||||
trans_class->transform_ip = GST_DEBUG_FUNCPTR (gst_stereo_transform_ip);
|
||||
|
@ -112,7 +112,7 @@ static void
|
|||
gst_stereo_init (GstStereo * stereo)
|
||||
{
|
||||
stereo->active = TRUE;
|
||||
stereo->stereo = 0.1;
|
||||
stereo->stereo = 0.1f;
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
|
Loading…
Reference in a new issue