From 50351bc28d1adcfba42f315cce3212e4a8482550 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 2 May 2003 21:13:19 +0000 Subject: [PATCH] remove unnecessary check for registries - registry gets rebuilt automagically anyway Original commit message from CVS: remove unnecessary check for registries - registry gets rebuilt automagically anyway --- gst/gst.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gst/gst.c b/gst/gst.c index b073852..3346dd1 100644 --- a/gst/gst.c +++ b/gst/gst.c @@ -382,19 +382,6 @@ init_pre (void) user_reg = g_strjoin ("/", homedir, LOCAL_REGISTRY_FILE, NULL); _user_registry = gst_xml_registry_new ("user_registry", user_reg); - /* this test is a hack; gst-register sets this to false - * so this is a test for the current instance being gst-register */ - if (_gst_registry_auto_load == TRUE) { - /* do a sanity check here; either one of the two registries should exist */ - if (!g_file_test (user_reg, G_FILE_TEST_IS_REGULAR)) { - if (!g_file_test (GLOBAL_REGISTRY_FILE, G_FILE_TEST_IS_REGULAR)) - { - g_print ("Couldn't find user registry %s or global registry %s\n", - user_reg, GLOBAL_REGISTRY_FILE); - g_error ("Please run gst-register either as root or user"); - } - } - } g_free (user_reg); } #endif /* GST_DISABLE_REGISTRY */ -- 2.7.4