From: Jan S. <th...@pd...> - 2004-06-12 10:14:53
|
CVS Root: /cvs/gstreamer Module: gstreamer Changes by: thaytan Date: Sat Jun 12 2004 20:14:52 EST Log message: * tools/gst-compprep.c: (handle_xmlerror), (main): Make an error that baffled me a bit clearer Modified files: . : ChangeLog tools : gst-compprep.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.582&r2=1.583 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/tools/gst-compprep.c.diff?r1=1.17&r2=1.18 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gstreamer/ChangeLog,v retrieving revision 1.582 retrieving revision 1.583 diff -u -d -r1.582 -r1.583 --- ChangeLog 11 Jun 2004 23:46:32 -0000 1.582 +++ ChangeLog 12 Jun 2004 10:14:39 -0000 1.583 @@ -1,3 +1,7 @@ +2004-06-12 Jan Schmidt <th...@ma...> + * 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: Index: gst-compprep.c RCS file: /cvs/gstreamer/gstreamer/tools/gst-compprep.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- gst-compprep.c 15 Mar 2004 19:27:17 -0000 1.17 +++ gst-compprep.c 12 Jun 2004 10:14:40 -0000 1.18 @@ -8,6 +8,14 @@ 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[]) @@ -120,9 +128,10 @@ } #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; |