summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorErik Walthinsen <omega@temple-baptist.org>2001-01-09 20:45:20 +0000
committerErik Walthinsen <omega@temple-baptist.org>2001-01-09 20:45:20 +0000
commitf20398a2f77ba7f706a8dc40bb55f7fae1bb598b (patch)
tree8305cd1cdb58bd9ab1d75b25dcb7c71a384e9488 /tools
parenta4c45cee9c21d32fcda67c6cbc13435caee3c6b3 (diff)
added unlink() of registry file, and moved info enable up
Original commit message from CVS: added unlink() of registry file, and moved info enable up
Diffstat (limited to 'tools')
-rw-r--r--tools/gstreamer-register.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/gstreamer-register.c b/tools/gstreamer-register.c
index 7cb49e8398..684e8a801f 100644
--- a/tools/gstreamer-register.c
+++ b/tools/gstreamer-register.c
@@ -130,11 +130,15 @@ int main(int argc,char *argv[])
{
xmlDocPtr doc;
+ // remove the old registry file first
+ // FIXME this could fail, at which point we're spinning
+ unlink(GLOBAL_REGISTRY_FILE);
+
// Init gst
_gst_plugin_spew = TRUE;
_gst_warn_old_registry = FALSE;
- gst_init(&argc,&argv);
gst_info_enable_category(GST_CAT_PLUGIN_LOADING);
+ gst_init(&argc,&argv);
// Check args
if (argc != 1) usage(argv[0]);