mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
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:
parent
33ef3f7d4d
commit
50351bc28d
1 changed files with 0 additions and 13 deletions
13
gst/gst.c
13
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 */
|
||||
|
|
Loading…
Reference in a new issue