aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-09-08 20:32:50 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2011-09-21 13:35:14 +0900
commit131c69b4b2023cd8fb159b7bfd1dba50c58bb43d (patch)
tree29ba2257eca5e6aa78aedeef7b0c18a807645190
parent1ab9aab338faca54a409fcc1260f60f29243ce62 (diff)
downloadbluez-hcidump-131c69b4b2023cd8fb159b7bfd1dba50c58bb43d.tar.gz
bluez-hcidump-131c69b4b2023cd8fb159b7bfd1dba50c58bb43d.tar.xz
bluez-hcidump-131c69b4b2023cd8fb159b7bfd1dba50c58bb43d.zip
avrcp: fix name of metadata field
Metadata field number 0x7 should be the track duration and not the progress of the track playback. Thus rename it to a better description.
-rw-r--r--parser/avrcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/parser/avrcp.c b/parser/avrcp.c
index a3044f0..bb2effa 100644
--- a/parser/avrcp.c
+++ b/parser/avrcp.c
@@ -163,7 +163,7 @@
#define AVRCP_MEDIA_ATTRIBUTE_TRACK 0x4
#define AVRCP_MEDIA_ATTRIBUTE_TOTAL 0x5
#define AVRCP_MEDIA_ATTRIBUTE_GENRE 0x6
-#define AVRCP_MEDIA_ATTRIBUTE_PROGRESS 0x7
+#define AVRCP_MEDIA_ATTRIBUTE_DURATION 0x7
/* play status */
#define AVRCP_PLAY_STATUS_STOPPED 0x00
@@ -906,8 +906,8 @@ static const char *mediattr2str(uint32_t attr)
return "Track Total";
case AVRCP_MEDIA_ATTRIBUTE_GENRE:
return "Genre";
- case AVRCP_MEDIA_ATTRIBUTE_PROGRESS:
- return "Progress";
+ case AVRCP_MEDIA_ATTRIBUTE_DURATION:
+ return "Track duration";
default:
return "Reserved";
}