Commit 2d293534 authored by Sylvain Berfini's avatar Sylvain Berfini :cow:
Browse files

Do not start media loss check timer if no rtp timeout is 0

parent 4a6066cd
1 merge request!2556Fix/outbound proxy
Pipeline #63557 failed with stage
in 5 seconds
Showing with 4 additions and 0 deletions
...@@ -264,6 +264,10 @@ MediaStream *MS2AudioStream::getMediaStream() const { ...@@ -264,6 +264,10 @@ MediaStream *MS2AudioStream::getMediaStream() const {
void MS2AudioStream::setupMediaLossCheck() { void MS2AudioStream::setupMediaLossCheck() {
int disconnectTimeout = linphone_core_get_nortp_timeout(getCCore()); int disconnectTimeout = linphone_core_get_nortp_timeout(getCCore());
if (disconnectTimeout == 0) {
lInfo() << "No RTP timeout disabled";
return;
}
mMediaLostCheckTimer = getCore().createTimer( mMediaLostCheckTimer = getCore().createTimer(
[this, disconnectTimeout]() -> bool { [this, disconnectTimeout]() -> bool {
if (!audio_stream_alive(mStream, disconnectTimeout)) { if (!audio_stream_alive(mStream, disconnectTimeout)) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment