[grilo-plugins] [lastfm-albumart] Replaced xmlRecoverDoc with xmlReadMemory
- From: Xabier Rodriguez Calvar <xrcalvar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] [lastfm-albumart] Replaced xmlRecoverDoc with xmlReadMemory
- Date: Tue, 4 May 2010 15:50:55 +0000 (UTC)
commit af10ef3a731b7844ef2cb46413dd61775339c896
Author: Xabier Rodriguez Calvar <xrcalvar igalia com>
Date: Tue May 4 14:56:38 2010 +0200
[lastfm-albumart] Replaced xmlRecoverDoc with xmlReadMemory
src/lastfm-albumart/grl-lastfm-albumart.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/lastfm-albumart/grl-lastfm-albumart.c b/src/lastfm-albumart/grl-lastfm-albumart.c
index 40bfa7e..11169d1 100644
--- a/src/lastfm-albumart/grl-lastfm-albumart.c
+++ b/src/lastfm-albumart/grl-lastfm-albumart.c
@@ -139,7 +139,8 @@ xml_get_image (const gchar *xmldata)
xmlXPathObjectPtr xpath_res;
gchar *image;
- doc = xmlRecoverDoc ((xmlChar *) xmldata);
+ doc = xmlReadMemory (xmldata, xmlStrlen ((xmlChar*) xmldata), NULL, NULL,
+ XML_PARSE_RECOVER | XML_PARSE_NOBLANKS);
if (!doc) {
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]