simple case of qFuzzyCompare with double and float.
I kept m_volume as double rather than changing it to float, to mimic
the behavior of the mute variable.
Change-Id: Ife2f58f60738215ebd430ba94bef885c09994e72
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@gmail.com>
void QGstreamerCaptureSession::setVolume(qreal volume)
{
- if (!qFuzzyCompare(volume, m_volume)) {
+ if (!qFuzzyCompare(double(volume), m_volume)) {
m_volume = volume;
if (m_audioVolume)
g_object_set(G_OBJECT(m_audioVolume), "volume", m_volume, NULL);