[gvfs/mtp-backend: 6/64] MTP: Make gphoto2 monitor skip MTP devices.
- From: Philip Langdale <philipl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/mtp-backend: 6/64] MTP: Make gphoto2 monitor skip MTP devices.
- Date: Sat, 12 Jan 2013 04:34:38 +0000 (UTC)
commit 6645adf71cca81ad59eef7bbcf47cfdab505fb9b
Author: Philip Langdale <philipl cloudera com>
Date: Thu Aug 2 10:06:57 2012 -0700
MTP: Make gphoto2 monitor skip MTP devices.
monitor/gphoto2/ggphoto2volumemonitor.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/monitor/gphoto2/ggphoto2volumemonitor.c b/monitor/gphoto2/ggphoto2volumemonitor.c
index 64ef383..1f3ecc4 100644
--- a/monitor/gphoto2/ggphoto2volumemonitor.c
+++ b/monitor/gphoto2/ggphoto2volumemonitor.c
@@ -201,6 +201,11 @@ gudev_add_camera (GGPhoto2VolumeMonitor *monitor, GUdevDevice *device, gboolean
return;
}
#endif /* HAVE_AFC */
+ if (g_udev_device_get_property_as_boolean (device, "ID_MTP_DEVICE"))
+ {
+ /* g_debug ("ignoring device, is AFC"); */
+ return;
+ }
usb_bus_num = g_udev_device_get_property (device, "BUSNUM");
if (usb_bus_num == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]