mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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.
This commit is contained in:
parent
2f149355cd
commit
9b1bf88d7d
1 changed files with 7 additions and 4 deletions
|
@ -175,10 +175,13 @@ GST_START_TEST (test_class)
|
||||||
factory = gst_element_factory_find ("queue");
|
factory = gst_element_factory_find ("queue");
|
||||||
fail_if (factory == NULL);
|
fail_if (factory == NULL);
|
||||||
|
|
||||||
GST_DEBUG ("getting the type");
|
/* it may already be loaded if check is being run with CK_FORK=no */
|
||||||
/* feature is not loaded, should return 0 as the type */
|
if (!GST_PLUGIN_FEATURE (factory)->loaded) {
|
||||||
type = gst_element_factory_get_element_type (factory);
|
GST_DEBUG ("getting the type");
|
||||||
fail_if (type != 0);
|
/* 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");
|
GST_DEBUG ("now loading the plugin");
|
||||||
tmp =
|
tmp =
|
||||||
|
|
Loading…
Reference in a new issue