euresyssrc: set video format more fully to fix colorized grayscale issue

This commit is contained in:
Joshua M. Doe 2016-07-06 12:06:18 -04:00
parent 6c39c4ee93
commit f2c86ccd48

View File

@ -620,11 +620,9 @@ gst_euresys_get_camera_caps (GstEuresys * src)
} }
gst_video_info_init (&vinfo); gst_video_info_init (&vinfo);
gst_video_info_set_format (&vinfo, videoFormat, width, height);
vinfo.width = width; vinfo.fps_n = 30;
vinfo.height = height; vinfo.fps_d = 1;
vinfo.finfo = gst_video_format_get_info (videoFormat);
caps = gst_video_info_to_caps (&vinfo); caps = gst_video_info_to_caps (&vinfo);
if (caps == NULL) { if (caps == NULL) {