From ab224e62dcce8cc5375963aa0cf339191feba977 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 13 Mar 2004 05:38:13 +0000 Subject: Don't block during probing... Original commit message from CVS: * ext/alsa/gstalsa.c: (gst_alsa_class_probe_devices): * sys/oss/gstosselement.c: (gst_osselement_class_probe_devices): Don't block during probing... --- sys/oss/gstosselement.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/oss/gstosselement.c b/sys/oss/gstosselement.c index 637ea427..7dfac627 100644 --- a/sys/oss/gstosselement.c +++ b/sys/oss/gstosselement.c @@ -296,7 +296,7 @@ gst_osselement_class_probe_devices (GstOssElementClass *klass, * we don't need a mixer anyway (says OSS)... If we are a * mixer element, we use the mixer anyway. */ if ((fd = open (mixer ? mixer : - dsp, openmode)) > 0 || errno == EBUSY) { + dsp, openmode | O_NONBLOCK)) > 0 || errno == EBUSY) { GstOssDeviceCombination *combi; if (fd > 0) -- cgit