Commit c096815f authored by Simon Morlat's avatar Simon Morlat
Browse files

disable corner in preview

parent 2d8f269f
......@@ -365,6 +365,7 @@ VideoStream * video_preview_start(MSWebCam *device, MSVideoSize disp_size){
MSPixFmt format;
float fps=(float)29.97;
int mirroring=1;
int corner=-1;
/* creates the filters */
stream->source = ms_web_cam_create_reader(device);
......@@ -388,6 +389,7 @@ VideoStream * video_preview_start(MSWebCam *device, MSVideoSize disp_size){
ms_filter_call_method(stream->output,MS_FILTER_SET_PIX_FMT,&format);
ms_filter_call_method(stream->output,MS_FILTER_SET_VIDEO_SIZE,&disp_size);
ms_filter_call_method(stream->output,MS_VIDEO_OUT_ENABLE_MIRRORING,&mirroring);
ms_filter_call_method(stream->output,MS_VIDEO_OUT_SET_CORNER,&corner);
/* and then connect all */
ms_filter_link(stream->source,0, stream->pixconv,0);
......
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