- Silence plugin load errors when arts or esd is not installed (#645924)

This commit is contained in:
Hans de Goede 2010-11-05 10:57:43 +01:00
parent 4b3a36cac8
commit dc64ff1077
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,14 @@
diff -up libao-1.0.0/src/audio_out.c~ libao-1.0.0/src/audio_out.c
--- libao-1.0.0/src/audio_out.c~ 2010-03-24 05:11:42.000000000 +0100
+++ libao-1.0.0/src/audio_out.c 2010-11-05 10:38:29.098337997 +0100
@@ -189,7 +189,9 @@ static driver_list *_get_plugin(char *pl
} else {
- aerror("Failed to load plugin %s => dlopen() failed\n",plugin_file);
+ /* HDG: Silence plugin load errors when the needed libs are not
+ installed */
+ /* aerror("Failed to load plugin %s => dlopen() failed\n",plugin_file); */
return NULL;
}

View File

@ -1,6 +1,6 @@
Name: libao
Version: 1.0.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Cross Platform Audio Output Library
Group: System Environment/Libraries
License: GPLv2+
@ -9,6 +9,8 @@ Source0: http://downloads.xiph.org/releases/ao/%{name}-%{version}.tar.gz
Source1: ao.req
#libao-1.0.0 Pulse Audio Fix, patch from upstream
Patch0: libao-1.0.0-ao-pulse-fixes.patch
#silence errors when ie libesd or libarts are not installed, rhbz#645924
Patch1: libao-1.0.0-silence-plugin-loading.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: esound-devel >= 0.2.8
BuildRequires: arts-devel
@ -40,6 +42,7 @@ developing applications that use %{name}.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
sed -i "s/-O20/$RPM_OPT_FLAGS/" configure
sed -i "s/-ffast-math//" configure
@ -88,6 +91,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Fri Nov 5 2010 Hans de Goede <hdegoede@redhat.com> - 1.0.0-2
- Silence plugin load errors when arts or esd is not installed (#645924)
* Sat Aug 28 2010 Rakesh Pandit <rakesh@fedoraproject.org> - 1.0.0-1
- Updated to 1.0.0
* AO returned to active development