OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd25bc2
)
Make title always available in metadata
author
Lucas De Marchi
<lucas.demarchi@profusion.mobi>
Thu, 13 Oct 2011 12:57:03 +0000
(09:57 -0300)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 13 Oct 2011 13:09:52 +0000
(16:09 +0300)
audio/media.c
patch
|
blob
|
history
diff --git
a/audio/media.c
b/audio/media.c
index
eecb44d
..
519cafe
100644
(file)
--- a/
audio/media.c
+++ b/
audio/media.c
@@
-1448,12
+1448,16
@@
static gboolean parse_player_metadata(struct media_player *mp,
dbus_message_iter_next(&dict);
}
- if (title == FALSE)
- goto parse_error;
-
if (g_hash_table_size(track) == 0) {
g_hash_table_unref(track);
track = NULL;
+ } else if (title == FALSE) {
+ struct metadata_value *value = g_new(struct metadata_value, 1);
+ uint32_t id = AVRCP_MEDIA_ATTRIBUTE_TITLE;
+
+ value->type = DBUS_TYPE_STRING;
+ value->value.str = g_strdup("");
+ g_hash_table_insert(track, GUINT_TO_POINTER(id), value);
}
if (mp->track != NULL)