[grilo-plugins] [jamendo] Changed to use xmlReadMemory instead of xmlRecoverDoc
- From: Xabier Rodriguez Calvar <xrcalvar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] [jamendo] Changed to use xmlReadMemory instead of xmlRecoverDoc
- Date: Tue, 4 May 2010 15:50:35 +0000 (UTC)
commit a041f1b0962b7492fee6d2ca1b9ec03269986876
Author: Xabier Rodriguez Calvar <xrcalvar igalia com>
Date: Tue Apr 27 14:00:48 2010 +0200
[jamendo] Changed to use xmlReadMemory instead of xmlRecoverDoc
Now the function to skip the text nodes is useless and it was also
removed.
src/jamendo/grl-jamendo.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/jamendo/grl-jamendo.c b/src/jamendo/grl-jamendo.c
index a144619..d16fac6 100644
--- a/src/jamendo/grl-jamendo.c
+++ b/src/jamendo/grl-jamendo.c
@@ -289,7 +289,8 @@ xml_parse_result (const gchar *str, GError **error, XmlParseEntries *xpe)
xmlNodePtr node;
gint child_nodes = 0;
- doc = xmlRecoverDoc ((xmlChar *) str);
+ doc = xmlReadMemory (str, strlen (str), NULL, NULL,
+ XML_PARSE_RECOVER | XML_PARSE_NOBLANKS);
if (!doc) {
*error = g_error_new (GRL_ERROR,
GRL_ERROR_BROWSE_FAILED,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]