mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
st/prober: Make video file input work with no camera connected
This commit is contained in:
parent
30d7001df1
commit
b2337469a4
|
@ -826,6 +826,11 @@ list_video_devices(struct xrt_prober *xp,
|
||||||
{
|
{
|
||||||
struct prober *p = (struct prober *)xp;
|
struct prober *p = (struct prober *)xp;
|
||||||
|
|
||||||
|
const char *path = debug_get_option_vf_path();
|
||||||
|
if (path != NULL) {
|
||||||
|
cb(xp, NULL, "Video File", "Collabora", path, ptr);
|
||||||
|
}
|
||||||
|
|
||||||
// Loop over all devices and find video devices.
|
// Loop over all devices and find video devices.
|
||||||
for (size_t i = 0; i < p->num_devices; i++) {
|
for (size_t i = 0; i < p->num_devices; i++) {
|
||||||
struct prober_device *pdev = &p->devices[i];
|
struct prober_device *pdev = &p->devices[i];
|
||||||
|
|
|
@ -111,7 +111,8 @@ on_video_device(struct xrt_prober *xp,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(product, fact->settings.camera_name) != 0) {
|
if (strcmp(product, fact->settings.camera_name) != 0 &&
|
||||||
|
strcmp(product, "Video File") != 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue