mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 17:05:52 +00:00
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:
parent
a00d37e0ca
commit
7b865ef7fd
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue