directsoundsink: don't call set_volume with private scaled volume

use get_volume() instead to get unscaled volume

https://bugzilla.gnome.org/show_bug.cgi?id=788847
This commit is contained in:
Philippe Renon 2017-09-28 22:48:41 +02:00 committed by Sebastian Dröge
parent d519d14ad9
commit 73993149ec

View file

@ -564,7 +564,8 @@ gst_directsound_sink_prepare (GstAudioSink * asink,
return FALSE;
}
gst_directsound_sink_set_volume (dsoundsink, dsoundsink->volume, FALSE);
gst_directsound_sink_set_volume (dsoundsink,
gst_directsound_sink_get_volume (dsoundsink), FALSE);
gst_directsound_sink_set_mute (dsoundsink, dsoundsink->mute);
return TRUE;