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.
This commit is contained in:
Nicolas Dufresne 2017-10-07 21:11:41 +00:00 committed by Nicolas Dufresne
parent cebb5baaa6
commit 33e595b41c

View file

@ -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;