commit 9a41448fd76a8f635ec746fd5a68f10695cf474c
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Mar 6 23:16:33 2022 +0000
fix
audacious-plugins-freeworld.spec | 3 ++-
f60beb400eeb1e4778bbfd738bc4a4ccef3de539.patch | 31 ++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletion(-)
---
diff --git a/audacious-plugins-freeworld.spec b/audacious-plugins-freeworld.spec
index e71ded2..0e40f32 100644
--- a/audacious-plugins-freeworld.spec
+++ b/audacious-plugins-freeworld.spec
@@ -11,6 +11,7 @@ Summary: Additional plugins for the Audacious media player
License: GPLv3
URL:
https://audacious-media-player.org/
Source0:
https://distfiles.audacious-media-player.org/audacious-plugins-%{version}...
+Patch0:
https://github.com/audacious-media-player/audacious-plugins/commit/f60beb...
BuildRequires: audacious-devel >= %{version}
BuildRequires: gcc-c++
@@ -78,7 +79,7 @@ This is the plugin needed to access MMS streams.
%prep
-%setup -q -n audacious-plugins-%{version}
+%autosetup -p1 -n audacious-plugins-%{version}
sed -i '\,^.SILENT:,d' buildsys.mk.in
sed -i 's!MAKE} -s!MAKE} !' buildsys.mk.in
diff --git a/f60beb400eeb1e4778bbfd738bc4a4ccef3de539.patch
b/f60beb400eeb1e4778bbfd738bc4a4ccef3de539.patch
new file mode 100644
index 0000000..617c112
--- /dev/null
+++ b/f60beb400eeb1e4778bbfd738bc4a4ccef3de539.patch
@@ -0,0 +1,31 @@
+From f60beb400eeb1e4778bbfd738bc4a4ccef3de539 Mon Sep 17 00:00:00 2001
+From: John Lindgren <john(a)jlindgren.net>
+Date: Sat, 5 Mar 2022 12:05:34 -0500
+Subject: [PATCH] Fix build with FFmpeg 5.0
+
+---
+ src/ffaudio/ffaudio-core.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/ffaudio/ffaudio-core.cc b/src/ffaudio/ffaudio-core.cc
+index 16dc63e3a..a2b95fd6c 100644
+--- a/src/ffaudio/ffaudio-core.cc
++++ b/src/ffaudio/ffaudio-core.cc
+@@ -274,7 +274,7 @@ static AVInputFormat * get_format_by_content (const char * name,
VFSFile & file)
+ AVProbeData d = {name, buf, filled};
+ score = target;
+
+- f = av_probe_input_format2 (& d, true, & score);
++ f = (AVInputFormat *) av_probe_input_format2 (& d, true, & score);
+ if (f)
+ break;
+
+@@ -347,7 +347,7 @@ static bool find_codec (AVFormatContext * c, CodecInfo * cinfo)
+ #endif
+ if (stream && stream->codecpar &&
stream->codecpar->codec_type == AVMEDIA_TYPE_AUDIO)
+ {
+- AVCodec * codec = avcodec_find_decoder (stream->codecpar->codec_id);
++ AVCodec * codec = (AVCodec *) avcodec_find_decoder
(stream->codecpar->codec_id);
+
+ if (codec)
+ {