Fix gstreamer plugin build for platforms with qreal -> float
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>
This commit is contained in:
committed by
Qt by Nokia
parent
e06c037e10
commit
4141cf2772
@@ -1025,7 +1025,7 @@ void QGstreamerCaptureSession::setMuted(bool muted)
|
|||||||
|
|
||||||
void QGstreamerCaptureSession::setVolume(qreal volume)
|
void QGstreamerCaptureSession::setVolume(qreal volume)
|
||||||
{
|
{
|
||||||
if (!qFuzzyCompare(volume, m_volume)) {
|
if (!qFuzzyCompare(double(volume), m_volume)) {
|
||||||
m_volume = volume;
|
m_volume = volume;
|
||||||
if (m_audioVolume)
|
if (m_audioVolume)
|
||||||
g_object_set(G_OBJECT(m_audioVolume), "volume", m_volume, NULL);
|
g_object_set(G_OBJECT(m_audioVolume), "volume", m_volume, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user