mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
Bug #94429 (open with O_NONBLOCK). I hope it's ok (wtay ?)
Original commit message from CVS: Bug #94429 (open with O_NONBLOCK). I hope it's ok (wtay ?)
This commit is contained in:
parent
793944596f
commit
07f3eef84d
1 changed files with 3 additions and 2 deletions
|
@ -813,11 +813,12 @@ gst_osssink_open_audio (GstOssSink *sink)
|
||||||
sink->fd = open (sink->device, O_WRONLY | O_NONBLOCK);
|
sink->fd = open (sink->device, O_WRONLY | O_NONBLOCK);
|
||||||
if (errno == EBUSY) {
|
if (errno == EBUSY) {
|
||||||
g_warning ("osssink: unable to open the sound device (in use ?)\n");
|
g_warning ("osssink: unable to open the sound device (in use ?)\n");
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* re-open the sound device in blocking mode */
|
if (sink->fd >= 0)
|
||||||
close (sink->fd);
|
close (sink->fd);
|
||||||
|
|
||||||
|
/* re-open the sound device in blocking mode */
|
||||||
sink->fd = open (sink->device, O_WRONLY);
|
sink->fd = open (sink->device, O_WRONLY);
|
||||||
|
|
||||||
if (sink->fd < 0) {
|
if (sink->fd < 0) {
|
||||||
|
|
Loading…
Reference in a new issue