Skip to content

Commit

Permalink
Fix for rtcSetSignalingStateChangeCallback. Previously the function r…
Browse files Browse the repository at this point in the history
…emoved the callback using onGatheringStateChange instead of onSignalingStateChange.
  • Loading branch information
gasperov committed Mar 9, 2024
1 parent d684b3c commit 1ab5e7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/capi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ int rtcSetSignalingStateChangeCallback(int pc, rtcSignalingStateCallbackFunc cb)
cb(pc, static_cast<rtcSignalingState>(state), *ptr);
});
else
peerConnection->onGatheringStateChange(nullptr);
peerConnection->onSignalingStateChange(nullptr);
return RTC_ERR_SUCCESS;
});
}
Expand Down

0 comments on commit 1ab5e7f

Please sign in to comment.