From: Brian Cameron Date: Sun, 7 Dec 2008 19:22:48 +0000 (+0000) Subject: sys/sunaudio/gstsunaudiomixerctrl.c: Set the mixer fd before calling ioctl() on it... X-Git-Tag: 1.19.3~509^2~10868 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2020290c48846b1c53d770477902acc30da2eeb4;p=platform%2Fupstream%2Fgstreamer.git 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. --- 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; }