diff options
author | Jeremy Simon <jsimon13@yahoo.fr> | 2002-11-24 11:45:03 +0000 |
---|---|---|
committer | Jeremy Simon <jsimon13@yahoo.fr> | 2002-11-24 11:45:03 +0000 |
commit | 07f3eef84d6379bdd3f7531eb4c52fd94b9e000a (patch) | |
tree | 9fc0ad61c1435a3f5d0d669f4a4258b870e21bae /sys/oss | |
parent | 793944596f04b80e17d8c1ac5fd56f386d847a9e (diff) |
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 ?)
Diffstat (limited to 'sys/oss')
-rw-r--r-- | sys/oss/gstosssink.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c index c2feb7c8..94561540 100644 --- a/sys/oss/gstosssink.c +++ b/sys/oss/gstosssink.c @@ -813,11 +813,12 @@ gst_osssink_open_audio (GstOssSink *sink) sink->fd = open (sink->device, O_WRONLY | O_NONBLOCK); if (errno == EBUSY) { g_warning ("osssink: unable to open the sound device (in use ?)\n"); - return FALSE; } + if (sink->fd >= 0) + close (sink->fd); + /* re-open the sound device in blocking mode */ - close (sink->fd); sink->fd = open (sink->device, O_WRONLY); if (sink->fd < 0) { |