summaryrefslogtreecommitdiff
path: root/sys/directsound/gstdirectsoundsink.c
diff options
context:
space:
mode:
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;
}