From 33e595b41c62442197e805f71f8716ec8437b182 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Sat, 7 Oct 2017 21:11:41 +0000 Subject: [PATCH] v4l2videoenc: Fix driver capability dectection Use the right set of caps when checking if caps intersect. That makes the check only select the supported devices. --- sys/v4l2/gstv4l2videoenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/v4l2/gstv4l2videoenc.c b/sys/v4l2/gstv4l2videoenc.c index 4a14f31..f1d3087 100644 --- a/sys/v4l2/gstv4l2videoenc.c +++ b/sys/v4l2/gstv4l2videoenc.c @@ -1137,7 +1137,7 @@ gst_v4l2_is_video_enc (GstCaps * sink_caps, GstCaps * src_caps, } if (gst_caps_is_subset (sink_caps, gst_v4l2_object_get_raw_caps ()) - && check_caps (src_caps, gst_v4l2_object_get_codec_caps ())) + && check_caps (src_caps, codec_caps)) ret = TRUE; return ret; -- 2.7.4