From: Nicolas Dufresne Date: Wed, 4 Dec 2013 21:26:12 +0000 (-0500) Subject: v4l2object: Don't check format specific information X-Git-Tag: 1.3.1~353 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=689672ef17d7ee41c079b11be5f8c5acc426791f;p=platform%2Fupstream%2Fgst-plugins-good.git v4l2object: Don't check format specific information The number of plane, and the stride does not represent a capability change. Same caps can have different stride from the default GstVideoInfo and the number of planes will never change for 1 format. https://bugzilla.gnome.org/show_bug.cgi?id=720568 --- diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index b24270d..1181b61 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -2574,8 +2574,7 @@ gst_v4l2_object_set_format (GstV4l2Object * v4l2object, GstCaps * caps) format.fmt.pix_mp.width != width || format.fmt.pix_mp.height != height || format.fmt.pix_mp.pixelformat != pixelformat || - format.fmt.pix_mp.field != field || - format.fmt.pix_mp.num_planes != n_v4l_planes) { + format.fmt.pix_mp.field != field) { /* something different, set the format */ GST_DEBUG_OBJECT (v4l2object->element, "Setting format to %dx%d, format " "%" GST_FOURCC_FORMAT, width, height, GST_FOURCC_ARGS (pixelformat)); @@ -2641,8 +2640,7 @@ gst_v4l2_object_set_format (GstV4l2Object * v4l2object, GstCaps * caps) format.fmt.pix.width != width || format.fmt.pix.height != height || format.fmt.pix.pixelformat != pixelformat || - format.fmt.pix.field != field - || format.fmt.pix.bytesperline != stride) { + format.fmt.pix.field != field) { /* something different, set the format */ GST_DEBUG_OBJECT (v4l2object->element, "Setting format to %dx%d, format " "%" GST_FOURCC_FORMAT " bytesperline %d", width, height,