[cheese/gnome-2-30] Print correct product id in device monitor debugging



commit 02ca4ead8db9ea45aabb32a5bf90ae7025eb53df
Author: Filippo Argiolas <filippo argiolas gmail com>
Date:   Tue Jul 20 20:52:05 2010 +0200

    Print correct product id in device monitor debugging

 libcheese/cheese-camera-device-monitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libcheese/cheese-camera-device-monitor.c b/libcheese/cheese-camera-device-monitor.c
index 4b51438..e54e985 100644
--- a/libcheese/cheese-camera-device-monitor.c
+++ b/libcheese/cheese-camera-device-monitor.c
@@ -128,7 +128,7 @@ cheese_camera_device_monitor_added (CheeseCameraDeviceMonitor *monitor,
       vendor_id = g_ascii_strtoll (vendor, NULL, 16);
     product = g_udev_device_get_property (udevice, "ID_MODEL_ID");
     if (product != NULL)
-      product_id = g_ascii_strtoll (vendor, NULL, 16);
+      product_id = g_ascii_strtoll (product, NULL, 16);
     if (vendor_id == 0 || product_id == 0)
     {
       GST_WARNING ("Error getting vendor and product id");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]