v4l2: fix debug category initialisation again
authorTim-Philipp Müller <tim@centricular.com>
Mon, 19 Apr 2021 15:39:03 +0000 (16:39 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 20 Apr 2021 06:35:01 +0000 (06:35 +0000)
commitc70b41b22bfe46f60cfb392e586885e17e418979
treedb60850efe5aa97a06281277e31b2551edeeb96a
parentb705fb93be41e6fbf6ab8a4bdf5bfd0086df03f4
v4l2: fix debug category initialisation again

Would spew warnings on the rpi4 when calling into
gst_v4l2_object_get_codec_caps() from the probe_and_register()
function since the v4l2_debug category initialisation would
only be done later as part of the element/device provider
registration.

Also log things in the probe function to the v4l2 category
instead of the default category while we're at it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/956>
sys/v4l2/gstv4l2.c