[cheese] Fix getting vid/pid when they are known
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [cheese] Fix getting vid/pid when they are known
- Date: Thu, 3 Dec 2009 17:50:12 +0000 (UTC)
commit 684c4682cf8342782cf816c216c25516e30eba42
Author: Bastien Nocera <hadess hadess net>
Date: Thu Dec 3 17:49:42 2009 +0000
Fix getting vid/pid when they are known
libcheese/cheese-camera-device-monitor.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libcheese/cheese-camera-device-monitor.c b/libcheese/cheese-camera-device-monitor.c
index c776f19..a635dc4 100644
--- a/libcheese/cheese-camera-device-monitor.c
+++ b/libcheese/cheese-camera-device-monitor.c
@@ -86,10 +86,10 @@ cheese_camera_device_monitor_added (CheeseCameraDeviceMonitor *monitor,
g_print ("Checking udev device '%s'\n", g_udev_device_get_property (udevice, "DEVPATH"));
- vendor = g_udev_device_get_property (udevice, "ID_VENDOR");
+ vendor = g_udev_device_get_property (udevice, "ID_VENDOR_ID");
if (vendor != NULL)
vendor_id = g_ascii_strtoll (vendor, NULL, 16);
- product = g_udev_device_get_property (udevice, "ID_MODEL");
+ product = g_udev_device_get_property (udevice, "ID_MODEL_ID");
if (product != NULL)
product_id = g_ascii_strtoll (vendor, NULL, 16);
if (vendor_id == 0 || product_id == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]