[vlc-commits] srt: Fix build failure
Justin Kim
git at videolan.org
Wed Nov 15 16:11:23 CET 2017
vlc | branch: master | Justin Kim <justin.kim at collabora.com> | Wed Nov 15 16:47:58 2017 +0900| [e05a869878aa9f0b1bf8dd4c3ad8b5e495c3a5f0] | committer: Jean-Baptiste Kempf
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 <justin.kim at collabora.com>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e05a869878aa9f0b1bf8dd4c3ad8b5e495c3a5f0
---
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 )
More information about the vlc-commits
mailing list