uvcsink: configfs.c: use G_N_ELEMENTS instead of ARRAY_SIZE

We don't have ARRAY_SIZE in glib.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1304>
This commit is contained in:
Michael Grzeschik 2023-05-09 00:50:41 +02:00 committed by GStreamer Marge Bot
parent fd3a6ce642
commit 079fc8216c

View file

@ -676,7 +676,7 @@ configfs_parse_streaming_format (const char *path,
return -EINVAL;
}
for (i = 0; i < ARRAY_SIZE (uvc_formats); ++i) {
for (i = 0; i < G_N_ELEMENTS (uvc_formats); ++i) {
if (!memcmp (uvc_formats[i].guid, format->guid, 16)) {
format->fcc = uvc_formats[i].fcc;
break;