From 41afe36c7760121e58922fc49b57619ee78655e8 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 23 May 2011 06:11:31 -0300 Subject: [PATCH] get_media_devices: don't bail out if one of the clases is not available For now, it requires that all dvb, v4l and sound classes to be available, otherwise, an error happens. Signed-off-by: Mauro Carvalho Chehab --- utils/libv4l2util/get_media_devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/libv4l2util/get_media_devices.c b/utils/libv4l2util/get_media_devices.c index d8c65ef..af399c6 100644 --- a/utils/libv4l2util/get_media_devices.c +++ b/utils/libv4l2util/get_media_devices.c @@ -64,7 +64,7 @@ static int get_class(char *class, dir = opendir(dname); if (!dir) { perror(dname); - return -1; + return 0; } for (entry = readdir(dir); entry; entry = readdir(dir)) { sprintf(fname, "%s/%s", dname, entry->d_name); -- 2.7.4