aports/testing/mediastreamer2/fix-build-srtp-missing-function.patch

14 lines
494 B
Diff

diff --git a/src/crypto/ms_srtp.c b/src/crypto/ms_srtp.c
index ef15d54..a33477d 100644
--- a/src/crypto/ms_srtp.c
+++ b/src/crypto/ms_srtp.c
@@ -371,7 +371,7 @@ static int ms_add_srtp_stream(srtp_t srtp, MSCryptoSuite suite, uint32_t ssrc, c
policy.key = (uint8_t *)key;
policy.next = NULL;
- err = srtp_add_or_update_stream(srtp, &policy);
+ err = srtp_add_stream(srtp, &policy);
if (err != err_status_ok) {
ms_error("Failed to add stream to srtp session (%d)", err);
return -1;