summaryrefslogtreecommitdiff
path: root/sys/v4l
diff options
context:
space:
mode:
authorMike Ruprecht <cmaiku@gmail.com>2008-08-23 15:25:44 (GMT)
committerSebastian Dröge <slomo@circular-chaos.org>2008-08-23 15:25:44 (GMT)
commit648d060427781ef23ba6b50f5dce18273b9ad105 (patch)
tree26395dc1b63243b7eba7df32c53e2681e6590345 /sys/v4l
parent4f9bfa6a03a1c1baea83bc35644b3d9dc9b74c3c (diff)
downloadgst-plugins-base-648d060427781ef23ba6b50f5dce18273b9ad105.tar.gz
gst-plugins-base-648d060427781ef23ba6b50f5dce18273b9ad105.tar.xz
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.
Diffstat (limited to 'sys/v4l')
-rw-r--r--sys/v4l/gstv4lelement.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/v4l/gstv4lelement.c b/sys/v4l/gstv4lelement.c
index cdd3ebb..1bacb64 100644
--- a/sys/v4l/gstv4lelement.c
+++ b/sys/v4l/gstv4lelement.c
@@ -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);
}