File 03_udev_rules_media_player of Package libgphoto2

# Description: Fix udev rules to identify media players
# Ubuntu: https://launchpad.net/bugs/444083
# Upstream: https://sourceforge.net/tracker/?func=detail&aid=2877064&group_id=8874&atid=308874
Index: libgphoto2-2.4.6/packaging/generic/print-camera-list.c
===================================================================
--- libgphoto2-2.4.6.orig/packaging/generic/print-camera-list.c	2009-10-12 15:57:56.000000000 +0200
+++ libgphoto2-2.4.6/packaging/generic/print-camera-list.c	2009-10-12 15:58:01.000000000 +0200
@@ -582,6 +582,9 @@
 		}
 	}
 	if (has_valid_rule != 0) {
+		if (a->device_type & GP_DEVICE_AUDIO_PLAYER)
+			printf(", ENV{ID_MEDIA_PLAYER}=\"1\"");
+
 		if (pdata->script != NULL || pdata->mode != NULL || pdata->owner != NULL || pdata->group != NULL)
 			printf(", ");
 
openSUSE Build Service is sponsored by