Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
09627fe9
Commit
09627fe9
authored
Jan 16, 2017
by
Ghislain MARY
Browse files
Print a warning when updating a call using the current call params.
parent
562bf46f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
coreapi/linphonecore.c
coreapi/linphonecore.c
+7
-1
No files found.
coreapi/linphonecore.c
View file @
09627fe9
...
...
@@ -3471,6 +3471,7 @@ int linphone_core_start_update_call(LinphoneCore *lc, LinphoneCall *call){
int
linphone_core_update_call
(
LinphoneCore
*
lc
,
LinphoneCall
*
call
,
const
LinphoneCallParams
*
params
){
int
err
=
0
;
LinphoneCallState
nextstate
,
initial_state
;
const
LinphoneCallParams
*
current_params
;
#if defined(VIDEO_ENABLED) && defined(BUILD_UPNP)
bool_t
has_video
=
FALSE
;
...
...
@@ -3501,7 +3502,12 @@ int linphone_core_update_call(LinphoneCore *lc, LinphoneCall *call, const Linpho
ms_error
(
"linphone_core_update_call() is not allowed in [%s] state"
,
linphone_call_state_to_string
(
call
->
state
));
return
-
1
;
}
current_params
=
linphone_call_get_current_params
(
call
);
if
((
current_params
!=
NULL
)
&&
(
current_params
==
params
))
{
ms_warning
(
"linphone_core_update_call() is given the current params of the call, this probably not what you intend to do!"
);
}
linphone_call_check_ice_session
(
call
,
IR_Controlling
,
TRUE
);
if
(
params
!=
NULL
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment