Merge pull request #280 from trilene/voip

Ignore empty remote ICE candidates
This commit is contained in:
DeepBlueV7.X 2020-09-13 16:37:41 +02:00 committed by GitHub
commit a7b979084f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -426,8 +426,12 @@ WebRTCSession::acceptICECandidates(
for (const auto &c : candidates) { for (const auto &c : candidates) {
nhlog::ui()->debug( nhlog::ui()->debug(
"WebRTC: remote candidate: (m-line:{}):{}", c.sdpMLineIndex, c.candidate); "WebRTC: remote candidate: (m-line:{}):{}", c.sdpMLineIndex, c.candidate);
g_signal_emit_by_name( if (!c.candidate.empty()) {
webrtc_, "add-ice-candidate", c.sdpMLineIndex, c.candidate.c_str()); g_signal_emit_by_name(webrtc_,
"add-ice-candidate",
c.sdpMLineIndex,
c.candidate.c_str());
}
} }
} }
} }