projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7939445
)
Bug #94429 (open with O_NONBLOCK). I hope it's ok (wtay ?)
author
Jeremy Simon
<jsimon13@yahoo.fr>
Sun, 24 Nov 2002 11:45:03 +0000
(11:45 +0000)
committer
Jeremy Simon
<jsimon13@yahoo.fr>
Sun, 24 Nov 2002 11:45:03 +0000
(11:45 +0000)
Original commit message from CVS:
Bug #94429 (open with O_NONBLOCK). I hope it's ok (wtay ?)
sys/oss/gstosssink.c
patch
|
blob
|
history
diff --git
a/sys/oss/gstosssink.c
b/sys/oss/gstosssink.c
index
c2feb7c
..
9456154
100644
(file)
--- 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) {