dirctsoundsink: Fix volume reset on unmute

https://bugzilla.gnome.org/show_bug.cgi?id=755106
This commit is contained in:
Thomas Roos 2016-03-08 13:57:24 +01:00 committed by Sebastian Dröge
parent d746e1ef51
commit e345a7fee9

View file

@ -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;
}