From 2020290c48846b1c53d770477902acc30da2eeb4 Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Sun, 7 Dec 2008 19:22:48 +0000 Subject: sys/sunaudio/gstsunaudiomixerctrl.c: Set the mixer fd before calling ioctl() on it. Fixes bug #563414. Original commit message from CVS: Patch by: Brian Cameron * sys/sunaudio/gstsunaudiomixerctrl.c: (gst_sunaudiomixer_ctrl_open): Set the mixer fd before calling ioctl() on it. Fixes bug #563414. --- sys/sunaudio/gstsunaudiomixerctrl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/sunaudio') diff --git a/sys/sunaudio/gstsunaudiomixerctrl.c b/sys/sunaudio/gstsunaudiomixerctrl.c index 15fe1147..58978202 100644 --- a/sys/sunaudio/gstsunaudiomixerctrl.c +++ b/sys/sunaudio/gstsunaudiomixerctrl.c @@ -62,10 +62,11 @@ gst_sunaudiomixer_ctrl_open (GstSunAudioMixerCtrl * mixer) return FALSE; } + mixer->mixer_fd = fd; + /* Try to set the multiple open flag if we can, but ignore errors */ ioctl (mixer->mixer_fd, AUDIO_MIXER_MULTIPLE_OPEN); - mixer->mixer_fd = fd; return TRUE; } -- cgit