summaryrefslogtreecommitdiff
path: root/gst/audiofx
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-10-27 09:11:26 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-10-27 23:06:26 +0530
commit4e4b568f654b7b9640a23165f4b9b135b0d5ba45 (patch)
tree7377e78116e59041d65a04fd545800ac13ca877b /gst/audiofx
parent37df358c5ef8f38a823be17d595e2aa22a23eaec (diff)
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.
Diffstat (limited to 'gst/audiofx')
-rw-r--r--gst/audiofx/gststereo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/audiofx/gststereo.c b/gst/audiofx/gststereo.c
index f7e013bc3..35990104a 100644
--- a/gst/audiofx/gststereo.c
+++ b/gst/audiofx/gststereo.c
@@ -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