commit 4974293c9cf88022c678d0ee506a0120c54961bf
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Nov 1 15:27:28 2020 +0000
Drop obsolete patches
4f899efc13a3a8f5259ce260655dfdd6f4830299.patch | 55 ------
85aa32db726559743d08d2fcafbb90fc923c43ff.patch | 27 ---
libplacebo_patch_1.patch | 101 ----------
recent_srt_fix.patch | 25 +++
replace_deprecated_luaL_checkint.patch | 261 -------------------------
vlc.spec | 4 +
6 files changed, 29 insertions(+), 444 deletions(-)
---
diff --git a/recent_srt_fix.patch b/recent_srt_fix.patch
new file mode 100644
index 0000000..b6c4fa1
--- /dev/null
+++ b/recent_srt_fix.patch
@@ -0,0 +1,25 @@
+--- a/modules/access/srt.c
++++ b/modules/access/srt.c
+@@ -165,7 +165,7 @@
+
+ /* Set latency */
+ i_latency = var_InheritInteger( p_stream, "latency" );
+- srt_setsockopt( p_sys->sock, 0, SRTO_TSBPDDELAY,
++ srt_setsockopt( p_sys->sock, 0, SRTO_LATENCY,
+ &i_latency, sizeof( int ) );
+
+ psz_passphrase = var_InheritString( p_stream, "passphrase" );
+
+--- a/modules/access_output/srt.c
++++ b/modules/access_output/srt.c
+@@ -162,7 +162,7 @@
+
+ /* Set latency */
+ i_latency = var_InheritInteger( p_access, "latency" );
+- srt_setsockopt( p_sys->sock, 0, SRTO_TSBPDDELAY,
++ srt_setsockopt( p_sys->sock, 0, SRTO_LATENCY,
+ &i_latency, sizeof( int ) );
+
+ if ( psz_passphrase != NULL && psz_passphrase[0] != '\0')
+
+
diff --git a/vlc.spec b/vlc.spec
index c773e1e..15d1a8a 100644
--- a/vlc.spec
+++ b/vlc.spec
@@ -71,6 +71,9 @@ Patch7: Switch-to-Fedora-lua-5.1.patch
# Backport for 3.0 notifyd without gtk3
Patch9: notify-don-t-depend-on-any-GTK-version.patch
+# Fix build issue with recent SRT library
+# Based on
https://git.videolan.org/?p=vlc.git;a=commit;h=6e8d77431127c482196115a6ee...
+Patch10: recent_srt_fix.patch
BuildRequires: desktop-file-utils
BuildRequires: libappstream-glib
@@ -345,6 +348,7 @@ sed -i -e 's/luac/luac-5.1/g' configure.ac
%endif
%patch9 -p1
+%patch10 -p1
%{?_with_bootstrap:
rm aclocal.m4 m4/lib*.m4 m4/lt*.m4 || :