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
e9f31b69
Commit
e9f31b69
authored
Jun 29, 2017
by
Ghislain MARY
Browse files
Mirror video output when calling linphone_core_preview_ogl_render().
parent
a906cfa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
coreapi/linphonecore.c
View file @
e9f31b69
...
...
@@ -5559,8 +5559,11 @@ void linphone_core_preview_ogl_render(const LinphoneCore *lc) {
LinphoneCall
*
call
=
linphone_core_get_current_call
(
lc
);
VideoStream
*
stream
=
call
?
call
->
videostream
:
lc
->
previewstream
;
if
(
stream
&&
stream
->
output2
&&
ms_filter_get_id
(
stream
->
output2
)
==
MS_OGL_ID
)
if
(
stream
&&
stream
->
output2
&&
ms_filter_get_id
(
stream
->
output2
)
==
MS_OGL_ID
)
{
int
mirroring
=
TRUE
;
ms_filter_call_method
(
stream
->
output2
,
MS_VIDEO_DISPLAY_ENABLE_MIRRORING
,
&
mirroring
);
ms_filter_call_method
(
stream
->
output2
,
MS_OGL_RENDER
,
NULL
);
}
#endif
}
...
...
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