Original commit message from CVS:
Patch by: Mike Ruprecht <cmaiku at gmail dot com>
* sys/v4l/gstv4lelement.c: (gst_v4l_class_probe_devices):
Reprobe devices again instead of taking a cached list as new
devices could've been plugged in. Fixes bug #549062.
+2008-08-23 Sebastian Dröge <sebastian.droege@collabora.co.uk>
+
+ Patch by: Mike Ruprecht <cmaiku at gmail dot com>
+
+ * sys/v4l/gstv4lelement.c: (gst_v4l_class_probe_devices):
+ Reprobe devices again instead of taking a cached list as new
+ devices could've been plugged in. Fixes bug #549062.
+
2008-08-23 Sebastian Dröge <sebastian.droege@collabora.co.uk>
Patch by: Alessandro Dessina <alessandro nnva org>
static gboolean init = FALSE;
static GList *devices = NULL;
- if (!init && !check) {
+ if (!check) {
gchar *dev_base[] = { "/dev/video", "/dev/v4l/video", NULL };
gint base, n, fd;
GList *item = devices;
gchar *device = item->data;
- devices = g_list_remove (devices, item);
+ devices = g_list_remove (devices, device);
g_free (device);
}