From: Andy Wingo Date: Wed, 26 Dec 2001 06:58:25 +0000 (+0000) Subject: output human-readable xml X-Git-Tag: RELEASE-0_3_1-BELGIANBEER~97 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ee758f076fa7ce977fe87090e6c4ed110dde976;p=platform%2Fupstream%2Fgstreamer.git output human-readable xml Original commit message from CVS: output human-readable xml --- diff --git a/tools/gstreamer-compprep.c b/tools/gstreamer-compprep.c index 40eb151..d079da6 100644 --- a/tools/gstreamer-compprep.c +++ b/tools/gstreamer-compprep.c @@ -42,7 +42,7 @@ 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", + fprintf(stdout,"adding factory %s\n", gst_object_get_name (GST_OBJECT (factory))); if (element == NULL) { fprintf(stderr,"couldn't construct element from factory %s\n", @@ -100,7 +100,11 @@ int main(int argc,char *argv[]) { } } +#ifdef HAVE_LIBXML2 + xmlSaveFormatFile(GST_CONFIG_DIR "/compreg.xml",doc,1); +#else xmlSaveFile(GST_CONFIG_DIR "/compreg.xml",doc); +#endif return 0; }