summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Roos <thomas.roos@industronic.de>2016-03-08 13:57:24 +0100
committerSebastian Dröge <sebastian@centricular.com>2016-03-08 20:42:06 +0200
commite345a7fee9dc0190b59a49967818ae88dc71fe8c (patch)
treee8a4d2885e48c206ccc3b98010b9f2344748d814
parentd746e1ef513106dfa545ed3ab8c596507536c07e (diff)
downloadgstreamer-plugins-good-e345a7fee9dc0190b59a49967818ae88dc71fe8c.tar.gz
dirctsoundsink: Fix volume reset on unmute
https://bugzilla.gnome.org/show_bug.cgi?id=755106
-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;
}