commit 316726cbb9af0a9e79a2d8cd3fc0983229d6ba4c
Author: Martin Gansser <mgansser(a)alice.de>
Date: Tue Mar 21 15:13:48 2017 +0100
Add vdr-mp3-fix-overloaded-ambiguous.patch
clog | 3 ---
vdr-mp3-fix-overloaded-ambiguous.patch | 11 +++++++++++
vdr-mp3.spec | 6 ++++--
3 files changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/vdr-mp3-fix-overloaded-ambiguous.patch
b/vdr-mp3-fix-overloaded-ambiguous.patch
new file mode 100644
index 0000000..924deb8
--- /dev/null
+++ b/vdr-mp3-fix-overloaded-ambiguous.patch
@@ -0,0 +1,11 @@
+--- mp3-0.10.2/player-mp3.c.orig 2017-03-21 14:57:53.820931295 +0100
++++ mp3-0.10.2/player-mp3.c 2017-03-21 15:02:38.834642016 +0100
+@@ -1429,7 +1429,7 @@
+ int real=sr;
+ CHECK(ioctl(fd,SNDCTL_DSP_SPEED,&real));
+ d(printf("oss: DSP samplerate now %d\n",real))
+- if((unsigned int)abs(real-sr)<sr/50) {
++ if((unsigned int)abs(real-(int)sr)<sr/50) {
+ outSr=sr;
+ d(printf("mp3-oss: DSP reset done\n"))
+ return true;
diff --git a/vdr-mp3.spec b/vdr-mp3.spec
index d1bdc8a..f8f5277 100644
--- a/vdr-mp3.spec
+++ b/vdr-mp3.spec
@@ -26,6 +26,7 @@ Patch4: %{name}-0.10.1-no-debug.patch
Patch5: %{name}-0.10.2-Makefile.patch
Patch6: %{name}-0.10.2-fsf-fix.patch
Patch7: %{name}-vdr2.1.2-compat.patch
+Patch8: %{name}-fix-overloaded-ambiguous.patch
BuildRequires: vdr-devel >= 2.0.6
BuildRequires: libsndfile-devel >= 1.0.0
@@ -65,6 +66,7 @@ primary output device.
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p1
%{__perl} -pi -e \
's|CFGFIL=.*|CFGFIL="%{vdr_configdir}/plugins/mplayer.sh.conf"|' \
mplayer.sh
@@ -176,8 +178,8 @@ fi
%changelog
-* Mon Mar 20 2017 RPM Fusion Release Engineering <kwizart(a)rpmfusion.org> -
0.10.2-12
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+* Tue Mar 21 2017 Martin Gansser <martinkg(a)fedoraproject.org> - 0.10.2-12
+- Add vdr-mp3-fix-overloaded-ambiguous.patch
* Tue Mar 17 2015 Martin Gansser <martinkg(a)fedoraproject.org> - 0.10.2-11
- added vdr-mp3-vdr2.1.2-compat.patch