summaryrefslogtreecommitdiff
path: root/src/mediactl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mediactl.c')
-rw-r--r--src/mediactl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mediactl.c b/src/mediactl.c
index c5da471..5b8c587 100644
--- a/src/mediactl.c
+++ b/src/mediactl.c
@@ -452,6 +452,15 @@ struct media_device *media_open_debug(
return NULL;
}
+ ret = ioctl(media->fd, MEDIA_IOC_DEVICE_INFO, &media->info);
+ if (ret < 0) {
+ media_dbg(media, "%s: Unable to retrieve media device "
+ "information for device %s (%s)\n", __func__,
+ name, strerror(errno));
+ media_close(media);
+ return NULL;
+ }
+
media_dbg(media, "Enumerating entities\n");
ret = media_enum_entities(media);