GNOME Bugzilla – Bug 796672
v4l2object: use S_SELECTION instead of S_CROP in gst_v4l2_object_set_crop
Last modified: 2018-06-27 21:17:03 UTC
Created attachment 372818 [details] [review] v4l2object: use S_SELECTION instead of S_CROP in gst_v4l2_object_set_crop The S_CROP call doesn't work on mem2mem output queues. Use the S_SELECTION call to set the crop rectangle and only fall back to S_CROP for ancient kernels. This will allow v4l2videoenc to set the coded size on the output queue via S_FMT and then set the visible size via the crop rectangle, as required by the V4L2 codec API.
Attachment 372818 [details] pushed as 32fa1e7 - v4l2object: use S_SELECTION instead of S_CROP in gst_v4l2_object_set_crop