v4l2codecs: Warn user when no media devices are found
authorChristopher Obbard <chris.obbard@collabora.com>
Tue, 27 Sep 2022 17:17:24 +0000 (18:17 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 29 Sep 2022 19:12:14 +0000 (19:12 +0000)
commit0c83ddcdf7e931abb8601a030c4676efc196e9be
treeabf10cc255d95734b23525b90a6d7dd70436971a
parent3b900e1fa4fd888012dc005fa26ae2532a89b7a7
v4l2codecs: Warn user when no media devices are found

Currently if the user is not able to access the devices under /dev/media*,
either due to no media devices present on the system or simply no permission
to access the device, v4l2codecs initialises with no features or debug messages.

Since calling `GST_DEBUG="v4l2*:7" gst-inspect-1.0 v4l2codecs` is a typical way
to diagnose why element(s) failed to enumerate, we should be more verbose here
when the user is not able to access any /dev/media* device. So print a simple
debug message in this case to aid debugging.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3088>
subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codecdevice.c