Skip to content
Snippets Groups Projects
Commit 9b1bf88d authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

checks: don't assume element factory is not loaded yet

It may already be loaded if check is being run with CK_FORK=no.

See #623469.
parent 2f149355
No related branches found
No related tags found
No related merge requests found
......@@ -175,10 +175,13 @@ GST_START_TEST (test_class)
factory = gst_element_factory_find ("queue");
fail_if (factory == NULL);
GST_DEBUG ("getting the type");
/* feature is not loaded, should return 0 as the type */
type = gst_element_factory_get_element_type (factory);
fail_if (type != 0);
/* it may already be loaded if check is being run with CK_FORK=no */
if (!GST_PLUGIN_FEATURE (factory)->loaded) {
GST_DEBUG ("getting the type");
/* feature is not loaded, should return 0 as the type */
type = gst_element_factory_get_element_type (factory);
fail_if (type != 0);
}
GST_DEBUG ("now loading the plugin");
tmp =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment