diff options
author | Stéphane Cerveau <scerveau@collabora.com> | 2020-10-09 12:58:07 +0200 |
---|---|---|
committer | Stéphane Cerveau <scerveau@collabora.com> | 2020-10-14 16:05:13 +0200 |
commit | 139fbac92e08b572925e37e807e3447c403a070b (patch) | |
tree | e21814495c5425df2aa1191b9be4e01e1647a085 /tests | |
parent | 751aacd8fc3acad27edb85da27e27f59f04b83ce (diff) | |
download | gstreamer-139fbac92e08b572925e37e807e3447c403a070b.tar.gz |
gstreamer-full: add assert for global symbols
Add _gst_caps_features_any not null assert
Add _gst_caps_features_memory_system_memory as well
A bug has been detected when using -Bsymbolic in the link
of libgstreamer-full.so
This flag has been introduced to fix this issue:
https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/108
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/204>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/static-plugins/test-gst-full.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/static-plugins/test-gst-full.c b/tests/static-plugins/test-gst-full.c index 6ba1a2ab40..8b52e78108 100644 --- a/tests/static-plugins/test-gst-full.c +++ b/tests/static-plugins/test-gst-full.c @@ -7,8 +7,12 @@ main (int argc, char *argv[]) gst_init (&argc, &argv); + /* -Bsymbolic option is introducing a regression where this variable + * were duplicated over the use in a dynamical use of libgstreamer-full.so */ + g_assert_nonnull (_gst_caps_features_any); + g_assert_nonnull (_gst_caps_features_memory_system_memory); + e = gst_element_factory_make ("pipeline", NULL); g_assert_nonnull (e); g_object_unref (e); - } |