diff options
author | Thomas Roos <thomas.roos@industronic.de> | 2016-03-08 13:57:24 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-04-06 11:37:59 +0100 |
commit | 680588cdc918a59ed4f18d2ea03239df15361e5e (patch) | |
tree | 43f8e6576ed9320a161335135fc4d27e2e4f7263 | |
parent | 0d3c0078fe98be1dcedb470b19e61067a444015b (diff) | |
download | gstreamer-plugins-good-680588cdc918a59ed4f18d2ea03239df15361e5e.tar.gz |
dirctsoundsink: Fix volume reset on unmute
https://bugzilla.gnome.org/show_bug.cgi?id=755106
-rw-r--r-- | sys/directsound/gstdirectsoundsink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c index a4f0bded8..98e9cc60d 100644 --- a/sys/directsound/gstdirectsoundsink.c +++ b/sys/directsound/gstdirectsoundsink.c @@ -923,7 +923,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; } |