mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
376d55386a
commit
799f1a9ed9
2 changed files with 7 additions and 0 deletions
|
@ -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)));
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue