From: Benjamin Otte Date: Fri, 2 May 2003 21:13:19 +0000 (+0000) Subject: remove unnecessary check for registries - registry gets rebuilt automagically anyway X-Git-Tag: BRANCH-ERROR-ROOT~249 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50351bc28d1adcfba42f315cce3212e4a8482550;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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 */