From 2020290c48846b1c53d770477902acc30da2eeb4 Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Sun, 7 Dec 2008 19:22:48 +0000 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ sys/sunaudio/gstsunaudiomixerctrl.c | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5af8d98e..0f680fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2008-12-07 Sebastian Dröge + Patch by: Brian Cameron + + * sys/sunaudio/gstsunaudiomixerctrl.c: + (gst_sunaudiomixer_ctrl_open): + Set the mixer fd before calling ioctl() on it. Fixes bug #563414. + +2008-12-07 Sebastian Dröge + Patch by: Alexandre Rostovtsev * configure.ac: diff --git a/sys/sunaudio/gstsunaudiomixerctrl.c b/sys/sunaudio/gstsunaudiomixerctrl.c index 15fe114..5897820 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; } -- 2.7.4