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
b7610d5d
Commit
b7610d5d
authored
Apr 20, 2017
by
Ghislain MARY
Browse files
Fix definition of video preview.
parent
e71cdfa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
coreapi/linphonecore.c
View file @
b7610d5d
...
...
@@ -4812,7 +4812,13 @@ static void toggle_video_preview(LinphoneCore *lc, bool_t val){
if
(
val
){
if
(
lc
->
previewstream
==
NULL
){
const
char
*
display_filter
=
linphone_core_get_video_display_filter
(
lc
);
MSVideoSize
vsize
=
lc
->
video_conf
.
preview_vsize
.
width
!=
0
?
lc
->
video_conf
.
preview_vsize
:
lc
->
video_conf
.
vsize
;
MSVideoSize
vsize
=
{
0
};
const
LinphoneVideoDefinition
*
vdef
=
linphone_core_get_preview_video_definition
(
lc
);
if
(
!
vdef
||
linphone_video_definition_is_undefined
(
vdef
))
{
vdef
=
linphone_core_get_preferred_video_definition
(
lc
);
}
vsize
.
width
=
linphone_video_definition_get_width
(
vdef
);
vsize
.
height
=
linphone_video_definition_get_height
(
vdef
);
lc
->
previewstream
=
video_preview_new
(
lc
->
factory
);
video_preview_set_size
(
lc
->
previewstream
,
vsize
);
if
(
display_filter
)
...
...
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