summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorThomas Roos <thomas.roos@industronic.de>2016-03-08 17:37:17 +0100
committerSebastian Dröge <sebastian@centricular.com>2016-03-08 20:42:09 +0200
commit93d09f0474567c06efef3c77fb0e034a5d4a2f63 (patch)
treee9032cff204c36f7a7bd8f1f9374becaec6331a0 /sys
parente345a7fee9dc0190b59a49967818ae88dc71fe8c (diff)
dirctsoundsink: Setting volume should not unmute
https://bugzilla.gnome.org/show_bug.cgi?id=755106
Diffstat (limited to 'sys')
-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 6845fb0fc..c61e5e141 100644
--- a/sys/directsound/gstdirectsoundsink.c
+++ b/sys/directsound/gstdirectsoundsink.c
@@ -915,7 +915,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.));
@@ -923,7 +923,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);
}
}