[Gstreamer-bugs] [Bug 111362] Changed - osssink plugin blocks forever when dsp device is being used
bugzilla-daemon at widget.gnome.org
bugzilla-daemon at widget.gnome.org
Thu Apr 24 15:54:15 PDT 2003
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
http://bugzilla.gnome.org/show_bug.cgi?id=111362
Changed by in7y118 at public.uni-hamburg.de.
--- shadow/111362 Wed Apr 23 11:29:18 2003
+++ shadow/111362.tmp.9547 Thu Apr 24 18:54:14 2003
@@ -29,6 +29,16 @@
application tried to open a dsp device already in use. However, the
kernel hackers realized that was an incorrect behaviour. open()
should block for all devices by default. In recent kernels, if an
application doesn't wish to be block it has to open /dev/dsp in
non-blocking mode (O_NONBLOCK flag, IIRC). I guess that the ALSA
emulation layer copied the original, incorrect, behaviour.
+
+------- Additional Comments From in7y118 at public.uni-hamburg.de 2003-04-24 18:54 -------
+The current code does the following:
+1) Try to open in nonblocking mode.
+2) If that succeeds (device is available), it closes the device and
+opens it again in blocking mode.
+
+So it should give an error when the device is in use and work in most
+other cases. It's probably the best we can do currently where we need
+the device opened in blocking mode.
More information about the Gstreamer-bugs
mailing list