From e9f31b693c7bc6dff4334bcf0b5ed96b171091ce Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 29 Jun 2017 11:21:21 +0200 Subject: [PATCH] Mirror video output when calling linphone_core_preview_ogl_render(). --- coreapi/linphonecore.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 9ec34b498..6479e1b31 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -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 }