Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Roos <thomas.roos@industronic.de>2016-03-08 15:57:24 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-03-08 21:42:06 +0300
commite345a7fee9dc0190b59a49967818ae88dc71fe8c (patch)
treee8a4d2885e48c206ccc3b98010b9f2344748d814 /sys/directsound/gstdirectsoundsink.c
parentd746e1ef513106dfa545ed3ab8c596507536c07e (diff)
dirctsoundsink: Fix volume reset on unmute
https://bugzilla.gnome.org/show_bug.cgi?id=755106
Diffstat (limited to 'sys/directsound/gstdirectsoundsink.c')
-rw-r--r--sys/directsound/gstdirectsoundsink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c
index ffd1bfe89..6845fb0fc 100644
--- a/sys/directsound/gstdirectsoundsink.c
+++ b/sys/directsound/gstdirectsoundsink.c
@@ -941,7 +941,8 @@ gst_directsound_sink_set_mute (GstDirectSoundSink * dsoundsink, gboolean mute)
gst_directsound_sink_set_volume (dsoundsink, 0, FALSE);
dsoundsink->mute = TRUE;
} else {
- gst_directsound_sink_set_volume (dsoundsink, dsoundsink->volume, FALSE);
+ gst_directsound_sink_set_volume (dsoundsink,
+ gst_directsound_sink_get_volume (dsoundsink), FALSE);
dsoundsink->mute = FALSE;
}