[vlc-devel] [PATCH 1/3] srt: Fix build failure

Justin Kim justin.kim at collabora.com
Wed Nov 15 08:47:58 CET 2017


The properties and variables were changed while reviewing,
but I've failed to verify them fully.

Signed-off-by: Justin Kim <justin.kim at collabora.com>
---
 modules/access/srt.c        | 2 +-
 modules/access_output/srt.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/access/srt.c b/modules/access/srt.c
index e4d89e5ce4..4f61844a0a 100644
--- a/modules/access/srt.c
+++ b/modules/access/srt.c
@@ -217,7 +217,7 @@ static int Open(vlc_object_t *p_this)
     srt_setsockopt( p_sys->sock, 0, SRTO_TSBPDMODE, &(int) { 1 }, sizeof( int ) );
 
     /* Set latency */
-    srt_setsockopt( p_sys->sock, 0, SRTO_TSBPDDELAY, &p_sys->latency, sizeof( int ) );
+    srt_setsockopt( p_sys->sock, 0, SRTO_TSBPDDELAY, &p_sys->i_latency, sizeof( int ) );
 
     p_sys->i_poll_id = srt_epoll_create();
     if ( p_sys->i_poll_id == -1 )
diff --git a/modules/access_output/srt.c b/modules/access_output/srt.c
index dc2d2f6e1d..7de9b9151a 100644
--- a/modules/access_output/srt.c
+++ b/modules/access_output/srt.c
@@ -186,7 +186,7 @@ static int Open( vlc_object_t *p_this )
 
     p_sys->i_chunk_size = var_InheritInteger( p_access, "chunk-size" );
     p_sys->i_poll_timeout = var_InheritInteger( p_access, "poll-timeout" );
-    p_sys->i_latency = var_InheritInteger( p_stream, "latency" );
+    p_sys->i_latency = var_InheritInteger( p_access, "latency" );
     p_sys->i_poll_id = -1;
     p_sys->i_event_fd = -1;
 
@@ -241,7 +241,7 @@ static int Open( vlc_object_t *p_this )
     srt_setsockopt( p_sys->sock, 0, SRTO_SENDER, &(int) { 1 }, sizeof( int ) );
 
     /* Set latency */
-    srt_setsockopt( p_sys->sock, 0, SRTO_TSBPDDELAY, &p_sys->latency, sizeof( int ) );
+    srt_setsockopt( p_sys->sock, 0, SRTO_TSBPDDELAY, &p_sys->i_latency, sizeof( int ) );
 
     p_sys->i_poll_id = srt_epoll_create();
     if ( p_sys->i_poll_id == -1 )
-- 
2.15.0



More information about the vlc-devel mailing list