esound r518 - trunk
- From: jmouette svn gnome org
- To: svn-commits-list gnome org
- Subject: esound r518 - trunk
- Date: Tue, 18 Nov 2008 20:20:32 +0000 (UTC)
Author: jmouette
Date: Tue Nov 18 20:20:32 2008
New Revision: 518
URL: http://svn.gnome.org/viewvc/esound?rev=518&view=rev
Log:
* esdlib.c: Check if the esd binary exists at all. If not,
forego forking a shell and trying to execute it. This both
improves startup time and also avoids the "/bin/sh:
/usr/bin/esd: not found" warning.
Modified:
trunk/ChangeLog
trunk/esdlib.c
Modified: trunk/esdlib.c
==============================================================================
--- trunk/esdlib.c (original)
+++ trunk/esdlib.c Tue Nov 18 20:20:32 2008
@@ -890,6 +890,10 @@
/* there's something inherently flaky about this, and if
there's no audio device, Bad Things Happen */
+ /* do not bother trying if esd does not exist */
+ if (access(SERVERDIR"/esd", X_OK) != 0)
+ goto finish_connect;
+
if (pipe (esd_pipe) < 0)
goto finish_connect;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]