Explicitly define float constants as float
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 27 Oct 2016 03:41:26 +0000 (09:11 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:23 +0000 (19:32 +0000)
commit503822eb20df75207700289da728762cb63e8ed8
tree26f28a095766658eaa0e2e428c75e990c10e0768
parent9758f254308281cf54b2741bf5b9b4a49ec5575d
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.
ext/gl/gstgltransformation.c
gst-libs/gst/gl/gstglcolorconvert.c
gst-libs/gst/gl/gstglviewconvert.c