format the outputted reg.xml for libxml2. if anything causes your xml probs in the future, this is probably it...

Original commit message from CVS:
format the outputted reg.xml for libxml2. if anything causes your xml probs in the
future, this is probably it...
This commit is contained in:
Andy Wingo 2001-12-25 22:57:31 +00:00
parent 376d55386a
commit 799f1a9ed9
2 changed files with 7 additions and 0 deletions

View file

@ -42,6 +42,8 @@ int main(int argc,char *argv[]) {
xmlNewChild (factorynode, NULL, "name", gst_object_get_name (GST_OBJECT (factory)));
element = gst_elementfactory_create(factory,"element");
fprintf(stderr,"adding factory %s\n",
gst_object_get_name (GST_OBJECT (factory)));
if (element == NULL) {
fprintf(stderr,"couldn't construct element from factory %s\n",
gst_object_get_name (GST_OBJECT (factory)));

View file

@ -166,8 +166,13 @@ static void save_registry(const char *destfile,
error_perm();
}
#else
#ifdef HAVE_LIBXML2
/* indent the document */
if (xmlSaveFormatFile(destfile, *doc, 1) <= 0) {
#else
if (xmlSaveFile(destfile, *doc) <= 0) {
#endif
g_print("Cannot save new registry to `%s'", destfile);
error_perm();
}