From 6aaf23e06da226a82ab78d670e00c2c40534b4b7 Mon Sep 17 00:00:00 2001 From: Heikki Tampio Date: Wed, 2 Aug 2023 13:21:37 +0300 Subject: [PATCH] common: Rename add_zrtp_ctx() to start_zrtp() --- include/uvgrtp/media_stream.hh | 2 +- src/media_stream.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/uvgrtp/media_stream.hh b/include/uvgrtp/media_stream.hh index 32a326b..7028fb2 100644 --- a/include/uvgrtp/media_stream.hh +++ b/include/uvgrtp/media_stream.hh @@ -92,7 +92,7 @@ namespace uvgrtp { * \retval RTP_OK On success * \retval RTP_TIMEOUT if ZRTP timed out * \retval RTP_GENERIC_ERROR on other errors */ - rtp_error_t add_zrtp_ctx(); + rtp_error_t start_zrtp(); /** * diff --git a/src/media_stream.cc b/src/media_stream.cc index 3de641c..213c441 100644 --- a/src/media_stream.cc +++ b/src/media_stream.cc @@ -370,11 +370,11 @@ rtp_error_t uvgrtp::media_stream::init_auto_zrtp(std::shared_ptr z UVG_LOG_ERROR("Failed to initialize media stream"); return free_resources(ret); } - ret = add_zrtp_ctx(); + ret = start_zrtp(); return ret; } -rtp_error_t uvgrtp::media_stream::add_zrtp_ctx() +rtp_error_t uvgrtp::media_stream::start_zrtp() { if (!zrtp_) { UVG_LOG_ERROR("ZRTP not found, stream %i", ssrc_.get()->load());