[grilo-plugins] [youtube] Replaced xmlRecoverDoc with xmlReadMemory



commit a0a5e370ba86c61a045355e3a70a4633c2032b15
Author: Xabier Rodriguez Calvar <xrcalvar igalia com>
Date:   Tue May 4 14:39:37 2010 +0200

    [youtube] Replaced xmlRecoverDoc with xmlReadMemory

 src/youtube/grl-youtube.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/youtube/grl-youtube.c b/src/youtube/grl-youtube.c
index 480cd1f..3f33b81 100644
--- a/src/youtube/grl-youtube.c
+++ b/src/youtube/grl-youtube.c
@@ -575,7 +575,8 @@ build_categories_directory_read_cb (gchar *xmldata, gpointer user_data)
     return;
   }
 
-  doc = xmlRecoverDoc ((xmlChar *) xmldata);
+  doc = xmlReadMemory (xmldata, strlen (xmldata), NULL, NULL,
+                       XML_PARSE_RECOVER | XML_PARSE_NOBLANKS);
   if (!doc) {
     g_critical ("Failed to build category directory (2)");
     goto free_resources;



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