Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
da9ed564
Commit
da9ed564
authored
Mar 19, 2013
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mis-use of update_call in linphonec.
parent
1b7ed3a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
console/commands.c
console/commands.c
+9
-7
coreapi/linphonecore.c
coreapi/linphonecore.c
+1
-1
No files found.
console/commands.c
View file @
da9ed564
...
...
@@ -2510,13 +2510,15 @@ static int lpc_cmd_camera(LinphoneCore *lc, char *args){
const
LinphoneCallParams
*
cp
=
linphone_call_get_current_params
(
call
);
if
(
args
){
linphone_call_enable_camera
(
call
,
activated
);
if
((
activated
&&
!
linphone_call_params_video_enabled
(
cp
))){
/*update the call to add the video stream*/
LinphoneCallParams
*
ncp
=
linphone_call_params_copy
(
cp
);
linphone_call_params_enable_video
(
ncp
,
TRUE
);
linphone_core_update_call
(
lc
,
call
,
ncp
);
linphone_call_params_destroy
(
ncp
);
linphonec_out
(
"Trying to bring up video stream...
\n
"
);
if
(
linphone_call_get_state
(
call
)
==
LinphoneCallStreamsRunning
){
if
((
activated
&&
!
linphone_call_params_video_enabled
(
cp
))){
/*update the call to add the video stream*/
LinphoneCallParams
*
ncp
=
linphone_call_params_copy
(
cp
);
linphone_call_params_enable_video
(
ncp
,
TRUE
);
linphone_core_update_call
(
lc
,
call
,
ncp
);
linphone_call_params_destroy
(
ncp
);
linphonec_out
(
"Trying to bring up video stream...
\n
"
);
}
}
}
if
(
linphone_call_camera_enabled
(
call
))
...
...
coreapi/linphonecore.c
View file @
da9ed564
...
...
@@ -4711,7 +4711,7 @@ int linphone_core_get_device_rotation(LinphoneCore *lc ) {
*
**/
void
linphone_core_set_device_rotation
(
LinphoneCore
*
lc
,
int
rotation
)
{
ms_message
(
"%s : rotation=%d
\n
"
,
__FUNCTION__
,
rotation
);
ms_message
(
"%s : rotation=%d
\n
"
,
__FUNCTION__
,
rotation
);
lc
->
device_rotation
=
rotation
;
#ifdef VIDEO_ENABLED
LinphoneCall
*
call
=
linphone_core_get_current_call
(
lc
);
...
...
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