mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-07-17 17:21:55 +00:00
Merge pull request #337 from marmarek/media-fixup
Fix us_media_topology_init()
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user