rem: } else if (g_file_test ("/sys/class/video4linux/", G_FILE_TEST_IS_DIR) != FALSE) { dir = g_dir_open ("/sys/class/video4linux/", 0, NULL);
add: } else if (g_file_test ("/sys/class/video4linux", G_FILE_TEST_IS_DIR) != FALSE) { dir = g_dir_open ("/sys/class/video4linux", 0, NULL);
context: linux_scan (void){	GList *devs = NULL;	GDir *dir;	const char *name;	VideoDev *dev;	if (g_file_test ("/proc/video/dev", G_FILE_TEST_IS_DIR) != FALSE) {		dir = g_dir_open ("/proc/video/dev", 0, NULL);	} else if (g_file_test ("/sys/class/video4linux/", G_FILE_TEST_IS_DIR) != FALSE) {		dir = g_dir_open ("/sys/class/video4linux/", 0, NULL);	} else {		return NULL;	}	name = g_dir_read_name (dir);	while (name != NULL) {		dev = linux_add_video_dev (name);		if (dev != NULL) {			devs = g_list_prepend (devs, dev);		}		name = g_dir_read_name (dir);	}	g_dir_close (dir);	if (devs != NULL) {		devs = g_list_reverse (devs);	}	return devs;}