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
This commit is contained in:
Benjamin Otte 2003-05-02 21:13:19 +00:00
parent 33ef3f7d4d
commit 50351bc28d

View file

@ -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 */