From fd3a6ce6423f89221939cc1c468528185f9935e7 Mon Sep 17 00:00:00 2001 From: Michael Grzeschik Date: Tue, 9 May 2023 00:50:41 +0200 Subject: [PATCH] uvcsink: configfs.c: fix globing in uvc_video_device The gadget in the sysfs can be postfixed with an index. Fix the globbing by adding a wildcard after /gadget*/. Part-of: --- subprojects/gst-plugins-bad/sys/uvcgadget/configfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/uvcgadget/configfs.c b/subprojects/gst-plugins-bad/sys/uvcgadget/configfs.c index 0863bb7751..2ab4831872 100644 --- a/subprojects/gst-plugins-bad/sys/uvcgadget/configfs.c +++ b/subprojects/gst-plugins-bad/sys/uvcgadget/configfs.c @@ -234,7 +234,7 @@ udc_find_video_device (const char *udc, const char *function) int ret; ret = asprintf (&vpath, - "/sys/class/udc/%s/device/gadget/video4linux/video*", udc ? udc : "*"); + "/sys/class/udc/%s/device/gadget*/video4linux/video*", udc ? udc : "*"); if (!ret) return NULL;