summaryrefslogtreecommitdiff
path: root/gst/speed/gstspeed.c
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
commitf7908637554ff5f8ce60938e9c56962644ea71d3 (patch)
treeac0067cde75a1ea83fc6bbea6fe2b221e1e68f19 /gst/speed/gstspeed.c
parent83df90ed6c75dc387915366ce547f08649e60cde (diff)
downloadgstreamer-plugins-bad-f7908637554ff5f8ce60938e9c56962644ea71d3.tar.gz
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/speed/gstspeed.c')
-rw-r--r--gst/speed/gstspeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/speed/gstspeed.c b/gst/speed/gstspeed.c
index 72a907d7e..7518de28a 100644
--- a/gst/speed/gstspeed.c
+++ b/gst/speed/gstspeed.c
@@ -390,7 +390,7 @@ gst_speed_class_init (GstSpeedClass * klass)
g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_SPEED,
g_param_spec_float ("speed", "speed", "speed",
- 0.1, 40.0, 1.0,
+ 0.1f, 40.0, 1.0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
gst_element_class_set_static_metadata (gstelement_class, "Speed",