From f2c86ccd48a3e07dca31565cdfc9ebef6a8734a8 Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Wed, 6 Jul 2016 12:06:18 -0400 Subject: [PATCH] euresyssrc: set video format more fully to fix colorized grayscale issue --- sys/euresys/gsteuresyssrc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/euresys/gsteuresyssrc.c b/sys/euresys/gsteuresyssrc.c index 7030b35..ed3aa5d 100644 --- a/sys/euresys/gsteuresyssrc.c +++ b/sys/euresys/gsteuresyssrc.c @@ -620,11 +620,9 @@ gst_euresys_get_camera_caps (GstEuresys * src) } gst_video_info_init (&vinfo); - - vinfo.width = width; - vinfo.height = height; - vinfo.finfo = gst_video_format_get_info (videoFormat); - + gst_video_info_set_format (&vinfo, videoFormat, width, height); + vinfo.fps_n = 30; + vinfo.fps_d = 1; caps = gst_video_info_to_caps (&vinfo); if (caps == NULL) {