[rhythmbox] mtp: ignore android devices, so the android plugin can grab them
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] mtp: ignore android devices, so the android plugin can grab them
- Date: Tue, 18 Aug 2015 13:04:14 +0000 (UTC)
commit b9c021fdbee8264525ccbaa58d2da3e820a8ad06
Author: Jonathan Matthew <jonathan d14n org>
Date: Tue Aug 18 23:02:08 2015 +1000
mtp: ignore android devices, so the android plugin can grab them
plugins/mtpdevice/rb-mtp-plugin.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/mtpdevice/rb-mtp-plugin.c b/plugins/mtpdevice/rb-mtp-plugin.c
index 97fbc74..5408658 100644
--- a/plugins/mtpdevice/rb-mtp-plugin.c
+++ b/plugins/mtpdevice/rb-mtp-plugin.c
@@ -261,6 +261,13 @@ create_source_device_cb (RBRemovableMediaManager *rmm, GObject *device_obj, RBMt
return NULL;
}
+ /* check that it's not an android device */
+ if (g_strcmp0 (g_udev_device_get_property (device, "ID_MODEL"), "Android") == 0) {
+ rb_debug ("device %s is android based, android plugin should handle it",
+ g_udev_device_get_name (device));
+ return NULL;
+ }
+
/* get device info */
vendor = get_property_as_int (device, "ID_VENDOR_ID", 16);
model = get_property_as_int (device, "ID_MODEL_ID", 16);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]