GNOME Bugzilla – Bug 741863
bayer2rgb0: "transform_caps returned caps which are not a real subset of the filter caps" warning
Last modified: 2014-12-22 17:07:57 UTC
Created attachment 293183 [details] [review] [PATCH] bayer2rgb: avoid 'are not a real subset' warning. When starting the following pipeline : gst-launch-1.0 -e -f v4l2src num-buffers=1 device=/dev/video1 ! video/x-bayer,framerate=30/1 ! bayer2rgb ! jpegenc ! filesink location=/tmp/xxx.jpg one gets the following verbose warnings : 0:00:04.335771352 29633 0x1afec90 ERROR basetransform gstbasetransform.c:534:gst_base_transform_transform_caps:<bayer2rgb0> trans form_caps returned caps video/x-bayer, format=(string){ bggr, grbg, gbrg, rggb }, width=(int)1280, height=(int)1024, framerate=(fraction)30 /1 which are not a real subset of the filter caps video/x-bayer, format=(string)bggr, width=(int)1280, height=(int)1024, framerate=(fractio n)30/1 ** (gst-launch-1.0:29633): WARNING **: bayer2rgb0: transform_caps returned caps which are not a real subset of the filter caps 0:00:04.336843721 29633 0x1afec90 ERROR basetransform gstbasetransform.c:534:gst_base_transform_transform_caps:<bayer2rgb0> trans form_caps returned caps video/x-bayer, format=(string){ bggr, grbg, gbrg, rggb }, width=(int)1280, height=(int)1024, framerate=(fraction)30 /1 which are not a real subset of the filter caps video/x-bayer, framerate=(fraction)30/1, format=(string)bggr, width=(int)1280, height=(in t)1024 ** (gst-launch-1.0:29633): WARNING **: bayer2rgb0: transform_caps returned caps which are not a real subset of the filter caps 0:00:04.337654414 29633 0x1afec90 ERROR basetransform gstbasetransform.c:534:gst_base_transform_transform_caps:<bayer2rgb0> trans form_caps returned caps video/x-bayer, format=(string){ bggr, grbg, gbrg, rggb }, width=(int)1280, height=(int)1024, framerate=(fraction)30 /1 which are not a real subset of the filter caps video/x-bayer, format=(string)bggr, width=(int)1280, height=(int)1024, framerate=(fractio n)30/1 ** (gst-launch-1.0:29633): WARNING **: bayer2rgb0: transform_caps returned caps which are not a real subset of the filter caps
Thanks for the bug report. Should be fixed in master now: commit 68d4616ac88eb1af2e238f8b0876725753e8372c Author: Tim-Philipp Müller <tim@centricular.com> Date: Mon Dec 22 16:45:05 2014 +0000 bayer2rgb: take into account filter in transform_caps function Fixes criticals when filter caps are passed. Also fix wrong GST_DEBUG_OBJECT use. https://bugzilla.gnome.org/show_bug.cgi?id=741863
Hrm, sorry, I did not see that you attached a patch :/
Cherry-picked into 1.4 branch as well.