sys/v4l/gstv4lelement.c: Reprobe devices again instead of taking a cached list as new devices could've been plugged i...

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.
This commit is contained in:
Mike Ruprecht 2008-08-23 15:25:44 +00:00 committed by Sebastian Dröge
parent 4f9bfa6a03
commit 648d060427
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,11 @@
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>

View file

@ -114,7 +114,7 @@ gst_v4l_class_probe_devices (GstV4lElementClass * klass, gboolean check)
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;
@ -122,7 +122,7 @@ gst_v4l_class_probe_devices (GstV4lElementClass * klass, gboolean check)
GList *item = devices;
gchar *device = item->data;
devices = g_list_remove (devices, item);
devices = g_list_remove (devices, device);
g_free (device);
}