mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
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:
parent
fd3a6ce642
commit
079fc8216c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue