They're harmless, and some drivers at least return EINVAL
instead of ENOTTY for unsupported events (here: uvcvideo).
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/955>
/* ERRORS */
failed:
{
- if (errno != ENOTTY)
+ if (errno == ENOTTY || errno == EINVAL) {
+ GST_DEBUG_OBJECT (v4l2object->dbg_obj,
+ "Cannot subscribe to '%s' event: %s",
+ gst_v4l2_event_to_string (event), "not supported");
+ } else {
GST_ERROR_OBJECT (v4l2object->dbg_obj,
"Cannot subscribe to '%s' event: %s",
gst_v4l2_event_to_string (event), g_strerror (errno));
+ }
return FALSE;
}
}