[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
Wed Apr 23 08:29:18 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 gjc at inescporto.pt.

--- shadow/111362	Wed Apr 23 10:36:48 2003
+++ shadow/111362.tmp.9462	Wed Apr 23 11:29:18 2003
@@ -19,6 +19,16 @@
 return an error instead.
 
 ------- Additional Comments From in7y118 at public.uni-hamburg.de  2003-04-23 10:36 -------
 Works for me, I get the error "osscommon: Unable to open /dev/dsp (in 
 use ?)"
 I'm using ALSA OSS emulation though, so maybe it's a driver issue.
+
+------- Additional Comments From gjc at inescporto.pt  2003-04-23 11:29 -------
+  Then the ALSA driver must be the buggy one.  A long time ago, OSS
+drivers were buggy too, since they returned an error when an
+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.





More information about the Gstreamer-bugs mailing list