mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 06:38:08 +00:00
Mirror video output when calling linphone_core_preview_ogl_render().
This commit is contained in:
parent
a906cfa658
commit
e9f31b693c
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue