rem: proc = g_build_filename ("/sys/class/video4linux/",
add: proc = g_build_filename ("/sys/class/video4linux",
context: linux_add_video_dev (const char *name){	VideoDev *dev;	char *proc;	char **lines, *tmp, *filename;	filename = linux_get_device_path (name);	if (filename == NULL) {		return NULL;	}	if (g_file_test ("/proc/video/dev", G_FILE_TEST_IS_DIR) != FALSE) {		proc = g_build_filename ("/proc/video/dev", name, NULL);		lines = read_lines (proc);		g_free (proc);		if (lines == NULL) {			return NULL;		}		if (g_str_has_prefix (lines[0], "name") == FALSE) {			g_strfreev (lines);			return NULL;		}		tmp = strstr (lines[0], ":");		if (tmp == NULL || tmp + 1 == NULL || tmp + 2 == NULL) {			g_strfreev (lines);			return NULL;		}		tmp = tmp + 2;	} else {		proc = g_build_filename ("/sys/class/video4linux/",				name, "model", NULL);		lines = read_lines (proc);		g_free (proc);		if (lines == NULL) {			return NULL;		}		tmp = lines[0];	}	dev = g_new0 (VideoDev, 1);	dev->display_name = g_strdup (tmp);	dev->device = filename;	g_strfreev (lines);	return dev;}