From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> Using Track key inside a Track property would be pointless, despite the documentation and code where also inconsistent. --- doc/media-api.txt | 2 +- profiles/audio/avrcp.c | 2 +- profiles/audio/player.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/media-api.txt b/doc/media-api.txt index eb1f74f..5a6b68c 100644 --- a/doc/media-api.txt +++ b/doc/media-api.txt @@ -280,7 +280,7 @@ Properties string Equalizer [readwrite] Number of tracks in total - uint32 Number: + uint32 TrackNumber: Track number diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 7b7c2ef..99741e8 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -649,7 +649,7 @@ static const char *metadata_to_str(uint32_t id) case AVRCP_MEDIA_ATTRIBUTE_GENRE: return "Genre"; case AVRCP_MEDIA_ATTRIBUTE_TRACK: - return "Track"; + return "TrackNumber"; case AVRCP_MEDIA_ATTRIBUTE_N_TRACKS: return "NumberOfTracks"; case AVRCP_MEDIA_ATTRIBUTE_DURATION: diff --git a/profiles/audio/player.c b/profiles/audio/player.c index 82c5bfb..0b69912 100644 --- a/profiles/audio/player.c +++ b/profiles/audio/player.c @@ -72,7 +72,7 @@ static void append_metadata(void *key, void *value, void *user_data) DBusMessageIter *dict = user_data; if (strcasecmp((char *) key, "Duration") == 0 || - strcasecmp((char *) key, "Track") == 0 || + strcasecmp((char *) key, "TrackNumber") == 0 || strcasecmp((char *) key, "NumberOfTracks") == 0) { uint32_t num = atoi(value); dict_append_entry(dict, key, DBUS_TYPE_UINT32, &num); -- 1.8.0.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html