File vlc-srto_tsbpddelay.patch of Package vlc

Index: vlc-3.0.16/modules/access/srt.c
===================================================================
--- vlc-3.0.16.orig/modules/access/srt.c
+++ vlc-3.0.16/modules/access/srt.c
@@ -165,7 +165,7 @@ static bool srt_schedule_reconnect(strea
 
     /* 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" );
Index: vlc-3.0.16/modules/access_output/srt.c
===================================================================
--- vlc-3.0.16.orig/modules/access_output/srt.c
+++ vlc-3.0.16/modules/access_output/srt.c
@@ -162,7 +162,7 @@ static bool srt_schedule_reconnect(sout_
 
     /* 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')
Index: vlc-3.0.16/configure.ac
===================================================================
--- vlc-3.0.16.orig/configure.ac
+++ vlc-3.0.16/configure.ac
@@ -4016,7 +4016,7 @@ AM_CONDITIONAL([HAVE_LIRC], [test "${hav
 dnl
 dnl  SRT plugin
 dnl
-PKG_ENABLE_MODULES_VLC([SRT], [access_srt access_output_srt], [srt >= 1.2.2 srt < 1.3.0], [SRT input/output plugin], [auto], [], [], [-DENABLE_SRT])
+PKG_ENABLE_MODULES_VLC([SRT], [access_srt access_output_srt], [srt >= 1.2.2], [SRT input/output plugin], [auto], [], [], [-DENABLE_SRT])
 
 EXTEND_HELP_STRING([Visualisations and Video filter plugins:])
 dnl
openSUSE Build Service is sponsored by