summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Roos <thomas.roos@industronic.de>2016-03-08 17:37:17 +0100
committerTim-Philipp Müller <tim@centricular.com>2016-04-06 11:38:02 +0100
commitb32b1a83dce09ab5b950b642bb2e36aa0ac2e1ac (patch)
tree6489160ae5f2ec201819af105f002fd693a7f8da
parent680588cdc918a59ed4f18d2ea03239df15361e5e (diff)
downloadgstreamer-plugins-good-b32b1a83dce09ab5b950b642bb2e36aa0ac2e1ac.tar.gz
dirctsoundsink: Setting volume should not unmute
https://bugzilla.gnome.org/show_bug.cgi?id=755106
-rw-r--r--sys/directsound/gstdirectsoundsink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c
index 98e9cc60d..555f6d49a 100644
--- a/sys/directsound/gstdirectsoundsink.c
+++ b/sys/directsound/gstdirectsoundsink.c
@@ -897,7 +897,7 @@ gst_directsound_sink_set_volume (GstDirectSoundSink * dsoundsink,
* here, so remap.
*/
long dsVolume;
- if (volume == 0)
+ if (volume == 0 || dsoundsink->mute)
dsVolume = -10000;
else
dsVolume = 100 * (long) (20 * log10 ((double) volume / 100.));
@@ -905,7 +905,7 @@ gst_directsound_sink_set_volume (GstDirectSoundSink * dsoundsink,
GST_DEBUG_OBJECT (dsoundsink,
"Setting volume on secondary buffer to %d from %d", (int) dsVolume,
- (int) dsoundsink->volume);
+ (int) volume);
IDirectSoundBuffer_SetVolume (dsoundsink->pDSBSecondary, dsVolume);
}
}