summaryrefslogtreecommitdiffstats
path: root/multimedia/cheese/files
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2009-05-07 16:32:23 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2009-05-07 16:32:23 +0800
commite066b4dc122f32890e2f250aebadc27273c6ebb8 (patch)
treed00d9cb48fb4e85b74e4797b1295c3e92e799528 /multimedia/cheese/files
parenta3780a09081710b663342ec689958df4a6e601f3 (diff)
downloadmarcuscom-ports-e066b4dc122f32890e2f250aebadc27273c6ebb8.tar
marcuscom-ports-e066b4dc122f32890e2f250aebadc27273c6ebb8.tar.gz
marcuscom-ports-e066b4dc122f32890e2f250aebadc27273c6ebb8.tar.bz2
marcuscom-ports-e066b4dc122f32890e2f250aebadc27273c6ebb8.tar.lz
marcuscom-ports-e066b4dc122f32890e2f250aebadc27273c6ebb8.tar.xz
marcuscom-ports-e066b4dc122f32890e2f250aebadc27273c6ebb8.tar.zst
marcuscom-ports-e066b4dc122f32890e2f250aebadc27273c6ebb8.zip
Update to 2.27.1.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12271 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'multimedia/cheese/files')
-rw-r--r--multimedia/cheese/files/patch-src_cheese-webcam.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/multimedia/cheese/files/patch-src_cheese-webcam.c b/multimedia/cheese/files/patch-src_cheese-webcam.c
new file mode 100644
index 000000000..a0b5afd21
--- /dev/null
+++ b/multimedia/cheese/files/patch-src_cheese-webcam.c
@@ -0,0 +1,40 @@
+--- src/cheese-webcam.c.orig 2008-09-09 11:59:18.000000000 -0400
++++ src/cheese-webcam.c 2008-09-09 12:01:14.000000000 -0400
+@@ -301,7 +301,9 @@ cheese_webcam_get_video_devices_from_hal
+ {
+ char *device;
+ char *gstreamer_src, *product_name;
++#ifdef VIDIOC_QUERYCAP
+ struct v4l2_capability v2cap;
++#endif
+ struct video_capability v1cap;
+
+ device = libhal_device_get_property_string (hal_ctx, udis[i], "video4linux.device", &error);
+@@ -327,7 +329,11 @@ cheese_webcam_get_video_devices_from_hal
+ libhal_free_string (device);
+ continue;
+ }
++#ifdef VIDIOC_QUERYCAP
+ ok = ioctl (fd, VIDIOC_QUERYCAP, &v2cap);
++#else
++ ok = -1;
++#endif
+ if (ok < 0)
+ {
+ ok = ioctl (fd, VIDIOCGCAP, &v1cap);
+@@ -346,6 +352,7 @@ cheese_webcam_get_video_devices_from_hal
+ }
+ else
+ {
++#ifdef VIDIOC_QUERYCAP
+ guint cap = v2cap.capabilities;
+ g_print ("Detected v4l2 device: %s\n", v2cap.card);
+ g_print ("Driver: %s, version: %d\n", v2cap.driver, v2cap.version);
+@@ -361,6 +368,7 @@ cheese_webcam_get_video_devices_from_hal
+ }
+ gstreamer_src = "v4l2src";
+ product_name = (char *) v2cap.card;
++#endif
+ }
+
+ priv->webcam_devices[priv->num_webcam_devices].hal_udi = g_strdup (udis[i]);