mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-01 18:06:24 +00:00
fix(coreapi/linphonecore): fix preview ogl render, use now output2
This commit is contained in:
parent
fba1e7ccb1
commit
740eac982a
1 changed files with 2 additions and 4 deletions
|
|
@ -5464,12 +5464,10 @@ void linphone_core_preview_ogl_render(const LinphoneCore *lc) {
|
|||
#ifdef VIDEO_ENABLED
|
||||
|
||||
LinphoneCall *call = linphone_core_get_current_call(lc);
|
||||
VideoStream *stream;
|
||||
VideoStream *stream = call ? call->videostream : lc->previewstream;
|
||||
|
||||
if (call && (stream = call->videostream) && stream->output2 && ms_filter_get_id(stream->output2) == MS_OGL_ID)
|
||||
if (stream && stream->output2 && ms_filter_get_id(stream->output2) == MS_OGL_ID)
|
||||
ms_filter_call_method(stream->output2, MS_OGL_RENDER, NULL);
|
||||
else if ((stream = lc->previewstream) && stream->output && ms_filter_get_id(stream->output) == MS_OGL_ID)
|
||||
ms_filter_call_method(stream->output, MS_OGL_RENDER, NULL);
|
||||
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue