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); + /** * @} */