mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-07-17 17:21:55 +00:00
Fix us_media_topology_init()
Allocate the topology structure.
This commit is contained in:
@@ -170,6 +170,8 @@ struct media_v2_topology *us_media_topology_init(int fd) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
US_CALLOC(topology, 1);
|
||||
|
||||
if (us_xioctl(fd, MEDIA_IOC_G_TOPOLOGY, topology) < 0) {
|
||||
_LOG_PERROR("Can't query media topology info");
|
||||
goto error;
|
||||
|
||||
Reference in New Issue
Block a user