Commit 6c410fcc authored by Erwan Croze's avatar Erwan Croze 👋🏻

Fixing build

parent 0be2e0ed
......@@ -1631,19 +1631,21 @@ void video_preview_start(VideoPreview *stream, MSWebCam *device) {
// On Android the capture filter doesn't need a display filter to render the preview
stream->output2 = ms_factory_create_filter(stream->ms.factory, MS_VOID_SINK_ID);
#else
MSPixFmt format = MS_YUV420P; /* Display format */
int mirroring = 1;
int corner = -1;
MSVideoSize disp_size = stream->sent_vsize;
const char *displaytype = stream->display_name;
if (displaytype) {
stream->output2=ms_factory_create_filter_from_name(stream->ms.factory, displaytype);
ms_filter_call_method(stream->output2, MS_FILTER_SET_PIX_FMT, &format);
ms_filter_call_method(stream->output2, MS_FILTER_SET_VIDEO_SIZE, &disp_size);
ms_filter_call_method(stream->output2, MS_VIDEO_DISPLAY_ENABLE_MIRRORING, &mirroring);
ms_filter_call_method(stream->output2, MS_VIDEO_DISPLAY_SET_LOCAL_VIEW_MODE, &corner);
/* and then connect all */
{
MSPixFmt format = MS_YUV420P; /* Display format */
int mirroring = 1;
int corner = -1;
MSVideoSize disp_size = stream->sent_vsize;
const char *displaytype = stream->display_name;
if (displaytype) {
stream->output2=ms_factory_create_filter_from_name(stream->ms.factory, displaytype);
ms_filter_call_method(stream->output2, MS_FILTER_SET_PIX_FMT, &format);
ms_filter_call_method(stream->output2, MS_FILTER_SET_VIDEO_SIZE, &disp_size);
ms_filter_call_method(stream->output2, MS_VIDEO_DISPLAY_ENABLE_MIRRORING, &mirroring);
ms_filter_call_method(stream->output2, MS_VIDEO_DISPLAY_SET_LOCAL_VIEW_MODE, &corner);
/* and then connect all */
}
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment