mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
v4l2-probe: Skip devices without supported formats
This commit is contained in:
parent
3cdc700e3e
commit
1435974c2d
1 changed files with 7 additions and 0 deletions
|
@ -168,6 +168,13 @@ gst_v4l2_probe_and_register (GstPlugin * plugin)
|
|||
gst_v4l2_probe_template_caps (it->device_path, video_fd,
|
||||
V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE));
|
||||
|
||||
/* Skip devices without any supported formats */
|
||||
if (gst_caps_is_empty (sink_caps) || gst_caps_is_empty (src_caps)) {
|
||||
gst_caps_unref (sink_caps);
|
||||
gst_caps_unref (src_caps);
|
||||
continue;
|
||||
}
|
||||
|
||||
basename = g_path_get_basename (it->device_path);
|
||||
|
||||
if (gst_v4l2_is_video_dec (sink_caps, src_caps))
|
||||
|
|
Loading…
Reference in a new issue