[vlc-commits] srt: fix bug in setting passphrase
Aaron Boxer
git at videolan.org
Thu Apr 4 09:46:31 CEST 2019
vlc | branch: master | Aaron Boxer <aaron.boxer at collabora.com> | Wed Apr 3 13:11:56 2019 -0400| [ce386056d0dd9234bb52e057dbd6435dea74e140] | committer: Thomas Guillem
srt: fix bug in setting passphrase
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ce386056d0dd9234bb52e057dbd6435dea74e140
---
modules/access/srt.c | 2 +-
modules/access_output/srt.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/access/srt.c b/modules/access/srt.c
index 2cf800a914..ac73fbcebf 100644
--- a/modules/access/srt.c
+++ b/modules/access/srt.c
@@ -174,7 +174,7 @@ static bool srt_schedule_reconnect(stream_t *p_stream)
SRTO_PBKEYLEN, &i_key_length, sizeof(i_key_length) );
srt_set_socket_option( strm_obj, SRT_PARAM_PASSPHRASE, p_sys->sock,
- SRTO_PASSPHRASE, &psz_passphrase, sizeof(psz_passphrase) );
+ SRTO_PASSPHRASE, psz_passphrase, strlen(psz_passphrase) );
}
/* set maximum payload size */
diff --git a/modules/access_output/srt.c b/modules/access_output/srt.c
index d772a48843..da55a30478 100644
--- a/modules/access_output/srt.c
+++ b/modules/access_output/srt.c
@@ -165,7 +165,7 @@ static bool srt_schedule_reconnect(sout_access_out_t *p_access)
SRTO_PBKEYLEN, &i_key_length, sizeof(i_key_length) );
srt_set_socket_option( access_obj, SRT_PARAM_PASSPHRASE, p_sys->sock,
- SRTO_PASSPHRASE, &psz_passphrase, sizeof(psz_passphrase) );
+ SRTO_PASSPHRASE, psz_passphrase, strlen(psz_passphrase) );
}
/* set maximumu payload size */
More information about the vlc-commits
mailing list