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 <brian.cameron at sun dot com>
* sys/sunaudio/gstsunaudiomixerctrl.c:
(gst_sunaudiomixer_ctrl_open):
Set the mixer fd before calling ioctl() on it. Fixes bug #563414.
This commit is contained in:
Brian Cameron 2008-12-07 19:22:48 +00:00 committed by Sebastian Dröge
parent 9f2e7127dc
commit 2020290c48
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2008-12-07 Sebastian Dröge <sebastian.droege@collabora.co.uk>
Patch by: Brian Cameron <brian.cameron at sun dot com>
* 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 <sebastian.droege@collabora.co.uk>
Patch by: Alexandre Rostovtsev <tetromino at gmail dot com>

View file

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