add a linphone_call_ogl_render to use MSOGL ms filter

This commit is contained in:
Ronan Abhamon 2017-01-31 13:45:04 +01:00
parent b11a4fc371
commit 3c05f1e7d5
2 changed files with 13 additions and 0 deletions

View file

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

View file

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