[gupnp-av] Fix CDS LastChange parser updateID handling
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp-av] Fix CDS LastChange parser updateID handling
- Date: Sun, 9 Dec 2012 20:02:55 +0000 (UTC)
commit aed51b9ead8ce35da7504a483590d4cc3b996301
Author: Mark Ryan <mark d ryan intel com>
Date: Thu Dec 6 21:14:23 2012 +0100
Fix CDS LastChange parser updateID handling
The CDS LastChange parser is currently always returning 0 for the
updateID of a last change event. This is because it is trying to
extract the value from a child node rather than an attribute. This
commit fixes the problem by treating the updateID as an attribute.
https://bugzilla.gnome.org/show_bug.cgi?id=689808
libgupnp-av/gupnp-cds-last-change-parser.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgupnp-av/gupnp-cds-last-change-parser.c b/libgupnp-av/gupnp-cds-last-change-parser.c
index 1f120de..d51d385 100644
--- a/libgupnp-av/gupnp-cds-last-change-parser.c
+++ b/libgupnp-av/gupnp-cds-last-change-parser.c
@@ -154,7 +154,7 @@ gupnp_cds_last_change_parser_parse (GUPnPCDSLastChangeParser *parser,
tmp = xml_util_get_attribute_content (it, "objClass");
entry->class = g_strdup (tmp);
- entry->update_id = xml_util_get_uint_child_element
+ entry->update_id = (guint32) xml_util_get_uint_attribute
(it,
"updateID",
0);
@@ -173,7 +173,7 @@ gupnp_cds_last_change_parser_parse (GUPnPCDSLastChangeParser *parser,
tmp = xml_util_get_attribute_content (it, "objID");
entry->object_id = g_strdup (tmp);
- entry->update_id = xml_util_get_uint_child_element
+ entry->update_id = (guint32) xml_util_get_uint_attribute
(it,
"updateID",
0);
@@ -192,7 +192,7 @@ gupnp_cds_last_change_parser_parse (GUPnPCDSLastChangeParser *parser,
tmp = xml_util_get_attribute_content (it, "objID");
entry->object_id = g_strdup (tmp);
- entry->update_id = xml_util_get_uint_child_element
+ entry->update_id = (guint32) xml_util_get_uint_attribute
(it,
"updateID",
0);
@@ -211,7 +211,7 @@ gupnp_cds_last_change_parser_parse (GUPnPCDSLastChangeParser *parser,
tmp = xml_util_get_attribute_content (it, "objID");
entry->object_id = g_strdup (tmp);
- entry->update_id = xml_util_get_uint_child_element
+ entry->update_id = (guint32) xml_util_get_uint_attribute
(it,
"updateID",
0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]