st/gui: Show name of device when no modes are found

This commit is contained in:
Jakob Bornecrantz 2020-04-04 12:05:36 +01:00
parent f4143d7017
commit 9d009784b6
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
gui: Fix name not being shown when video device does not have any modes.

View file

@ -84,7 +84,7 @@ scene_render(struct gui_scene *scene, struct gui_program *p)
xrt_prober_list_video_devices(p->xp, on_video_device, vs);
} else if (vs->num_modes == 0) {
// No modes on it :(
igText("No modes found on '%s'!", "vs->xfs->name");
igText("No modes found on '%s'!", vs->xfs->name);
}
// We have selected a stream device and it has modes.