From 1ab5e7f9d551f47ac3b2a176a815f87c394d9acf Mon Sep 17 00:00:00 2001 From: Gasper Lah <39318629+gasperov@users.noreply.github.com> Date: Sat, 9 Mar 2024 10:57:06 +0100 Subject: [PATCH] Fix for rtcSetSignalingStateChangeCallback. Previously the function removed the callback using onGatheringStateChange instead of onSignalingStateChange. --- src/capi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/capi.cpp b/src/capi.cpp index bcabc9bdc..b6942214a 100644 --- a/src/capi.cpp +++ b/src/capi.cpp @@ -512,7 +512,7 @@ int rtcSetSignalingStateChangeCallback(int pc, rtcSignalingStateCallbackFunc cb) cb(pc, static_cast(state), *ptr); }); else - peerConnection->onGatheringStateChange(nullptr); + peerConnection->onSignalingStateChange(nullptr); return RTC_ERR_SUCCESS; }); }