+2004-06-12 Jan Schmidt <thaytan@mad.scientist.com>
+ * tools/gst-compprep.c: (handle_xmlerror), (main):
+ Make an error that baffled me a bit clearer
+
2004-06-12 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstqueue.c:
GST_DEBUG_CATEGORY_STATIC (debug_compprep);
#define GST_CAT_DEFAULT debug_compprep
+#define GST_COMPREG_FILE (GST_CACHE_DIR "/compreg.xml")
+
+void
+handle_xmlerror (void *userData, xmlErrorPtr error)
+{
+ g_print ("Error writing the completion registry: %s, %s\n", GST_COMPREG_FILE,
+ error->message);
+}
int
main (int argc, char *argv[])
}
#ifdef HAVE_LIBXML2
- xmlSaveFormatFile (GST_CACHE_DIR "/compreg.xml", doc, 1);
+ xmlSetStructuredErrorFunc (NULL, handle_xmlerror);
+ xmlSaveFormatFile (GST_COMPREG_FILE, doc, 1);
#else
- xmlSaveFile (GST_CACHE_DIR "/compreg.xml", doc);
+ xmlSaveFile (GST_COMPREG_FILE, doc);
#endif
return 0;