mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +00:00
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:
parent
9f2e7127dc
commit
2020290c48
2 changed files with 10 additions and 1 deletions
|
@ -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>
|
2008-12-07 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
Patch by: Alexandre Rostovtsev <tetromino at gmail dot com>
|
Patch by: Alexandre Rostovtsev <tetromino at gmail dot com>
|
||||||
|
|
|
@ -62,10 +62,11 @@ gst_sunaudiomixer_ctrl_open (GstSunAudioMixerCtrl * mixer)
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
mixer->mixer_fd = fd;
|
||||||
|
|
||||||
/* Try to set the multiple open flag if we can, but ignore errors */
|
/* Try to set the multiple open flag if we can, but ignore errors */
|
||||||
ioctl (mixer->mixer_fd, AUDIO_MIXER_MULTIPLE_OPEN);
|
ioctl (mixer->mixer_fd, AUDIO_MIXER_MULTIPLE_OPEN);
|
||||||
|
|
||||||
mixer->mixer_fd = fd;
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue