From e345a7fee9dc0190b59a49967818ae88dc71fe8c Mon Sep 17 00:00:00 2001 From: Thomas Roos Date: Tue, 8 Mar 2016 13:57:24 +0100 Subject: [PATCH] dirctsoundsink: Fix volume reset on unmute https://bugzilla.gnome.org/show_bug.cgi?id=755106 --- sys/directsound/gstdirectsoundsink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c index ffd1bfe89f..6845fb0fc1 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; }