mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-31 18:29:29 +00:00
Fix return value of MediaSession::update().
This commit is contained in:
parent
08a2180cbc
commit
56f8dcc57a
1 changed files with 3 additions and 2 deletions
|
|
@ -4313,6 +4313,7 @@ LinphoneStatus MediaSession::update (const MediaSessionParams *msp, const string
|
|||
L_D();
|
||||
LinphoneCallState nextState;
|
||||
LinphoneCallState initialState = d->state;
|
||||
LinphoneStatus result = 0;
|
||||
if (!d->isUpdateAllowed(nextState))
|
||||
return -1;
|
||||
if (d->currentParams == msp)
|
||||
|
|
@ -4328,7 +4329,7 @@ LinphoneStatus MediaSession::update (const MediaSessionParams *msp, const string
|
|||
lInfo() << "Defer CallSession update to gather ICE candidates";
|
||||
return 0;
|
||||
}
|
||||
LinphoneStatus result = d->startUpdate(subject);
|
||||
result = d->startUpdate(subject);
|
||||
if (result && (d->state != initialState)) {
|
||||
/* Restore initial state */
|
||||
d->setState(initialState, "Restore initial state");
|
||||
|
|
@ -4349,7 +4350,7 @@ LinphoneStatus MediaSession::update (const MediaSessionParams *msp, const string
|
|||
}
|
||||
#endif
|
||||
}
|
||||
return 0;
|
||||
return result;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue