Test xmlSaveFile return value correctly (had to get source to find out what it meant...) gstreamer-register now seem...

Original commit message from CVS:
Test xmlSaveFile return value correctly (had to get source to find out
what it meant...)  gstreamer-register now seems to work fine, even in
a non-standard location.
This commit is contained in:
Richard Boulton 2001-01-07 05:54:10 +00:00
parent a00d37e0ca
commit 7b865ef7fd

View file

@ -114,8 +114,7 @@ int main(int argc,char *argv[])
gst_plugin_save_thyself(doc->root); gst_plugin_save_thyself(doc->root);
// Save the registry to a tmp file. // Save the registry to a tmp file.
// FIXME; check for failure. if (xmlSaveFile(GLOBAL_REGISTRY_FILE_TMP, doc) <= 0) {
if (xmlSaveFile(GLOBAL_REGISTRY_FILE_TMP, doc)) {
g_print("Cannot save new registry `%s'", g_print("Cannot save new registry `%s'",
GLOBAL_REGISTRY_FILE_TMP); GLOBAL_REGISTRY_FILE_TMP);
error_perm(); error_perm();