From e05a869878aa9f0b1bf8dd4c3ad8b5e495c3a5f0 Mon Sep 17 00:00:00 2001 From: Justin Kim Date: Wed, 15 Nov 2017 16:47:58 +0900 Subject: [PATCH] srt: Fix build failure The properties and variables were changed while reviewing, but I've failed to verify them fully. Signed-off-by: Justin Kim Signed-off-by: Jean-Baptiste Kempf --- 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.11.4.GIT