Re: [PATCH 1/1] audio/media: Parse total number of tracks metadata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PING !

------- Original Message -------
Sender : Sagar Nageshmurthy<s.nageshmurt@xxxxxxxxxxx> Senior Software Engineer/SRI-Bangalore-System & Connectivity/Samsung Electronics
Date : Nov 21, 2014 11:09 (GMT+05:30)
Title : [PATCH 1/1] audio/media: Parse total number of tracks metadata

From: Sagar Nageshmurthy 

Currently Bluez ignores NumberOfTracks metadata. Hence parse totalTracks
key to update NumberOfTracks info.
---
profiles/audio/media.c |    3 +++
1 file changed, 3 insertions(+)

diff --git a/profiles/audio/media.c b/profiles/audio/media.c
index ef7b910..66b75b3 100644
--- a/profiles/audio/media.c
+++ b/profiles/audio/media.c
@@ -1505,6 +1505,9 @@ static gboolean parse_player_metadata(struct media_player *mp,
} else if (strcasecmp(key, "mpris:length") == 0) {
if (!parse_int64_metadata(mp, "Duration", &var))
return FALSE;
+ } else if (strcasecmp(key, "xesam:totalTracks") == 0) {
+ if (!parse_int32_metadata(mp, "NumberOfTracks", &var))
+ return FALSE;
} else if (strcasecmp(key, "xesam:trackNumber") == 0) {
if (!parse_int32_metadata(mp, "TrackNumber", &var))
return FALSE;
-- 
1.7.9.5ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¥Š{±ý¹nzÚ(¶âžØ^n‡r¡ö¦zË?ëh™¨è­Ú&£ûàz¿äz¹Þ—ú+€Ê+zf£¢·hšˆ§~†­†Ûiÿÿï?êÿ‘êçz_è®æj:+v‰¨þ)ߣøm





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux