From 3c05f1e7d5fde426e03b14f806e759aa1f5d3dfe Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 31 Jan 2017 13:45:04 +0100 Subject: [PATCH] add a `linphone_call_ogl_render` to use `MSOGL` ms filter --- coreapi/linphonecall.c | 7 +++++++ include/linphone/call.h | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index a84960b60..748469175 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -5060,3 +5060,10 @@ void linphone_call_replace_op(LinphoneCall *call, SalOp *op) { } sal_op_release(oldop); } + +void linphone_call_ogl_render(LinphoneCall *call) { + VideoStream *stream = call->videostream; + + if (stream && stream->output && ms_filter_get_id(stream->output) == MS_OGL_ID) + ms_filter_call_method(stream->output, MS_VIDEO_DISPLAY_CALL_GENERIC_RENDER, NULL); +} diff --git a/include/linphone/call.h b/include/linphone/call.h index 5b9f4765f..7c388fd17 100644 --- a/include/linphone/call.h +++ b/include/linphone/call.h @@ -567,6 +567,12 @@ LINPHONE_PUBLIC LinphonePlayer * linphone_call_get_player(LinphoneCall *call); **/ LINPHONE_PUBLIC bool_t linphone_call_media_in_progress(LinphoneCall *call); +/** + * Call generic OpenGL render for a given call. + * @param call The call. + */ +LINPHONE_PUBLIC void linphone_call_ogl_render(LinphoneCall *call); + /** * @} */