Merge pull request #337 from marmarek/media-fixup

Fix us_media_topology_init()
This commit is contained in:
Maxim Devaev
2026-07-08 21:32:44 +03:00
committed by GitHub

View File

@@ -170,6 +170,8 @@ struct media_v2_topology *us_media_topology_init(int fd) {
goto error; goto error;
} }
US_CALLOC(topology, 1);
if (us_xioctl(fd, MEDIA_IOC_G_TOPOLOGY, topology) < 0) { if (us_xioctl(fd, MEDIA_IOC_G_TOPOLOGY, topology) < 0) {
_LOG_PERROR("Can't query media topology info"); _LOG_PERROR("Can't query media topology info");
goto error; goto error;