summaryrefslogtreecommitdiff
path: root/test/gstreamer
diff options
context:
space:
mode:
Diffstat (limited to 'test/gstreamer')
-rw-r--r--test/gstreamer/gstreamer_test.cpp17
-rw-r--r--test/gstreamer/meson.build2
2 files changed, 1 insertions, 18 deletions
diff --git a/test/gstreamer/gstreamer_test.cpp b/test/gstreamer/gstreamer_test.cpp
index 091f7bf7..e8119b85 100644
--- a/test/gstreamer/gstreamer_test.cpp
+++ b/test/gstreamer/gstreamer_test.cpp
@@ -52,23 +52,6 @@ GstreamerTest::GstreamerTest(unsigned int numStreams)
}
/*
- * Remove the system libcamera plugin, if any, and add the plugin from
- * the build directory.
- */
- GstRegistry *registry = gst_registry_get();
- g_autoptr(GstPlugin) plugin = gst_registry_lookup(registry, "libgstlibcamera.so");
- if (plugin)
- gst_registry_remove_plugin(registry, plugin);
-
- std::string path = libcamera::utils::libcameraBuildPath() + "src/gstreamer";
- if (!gst_registry_scan_path(registry, path.c_str())) {
- g_printerr("Failed to add plugin to registry\n");
-
- status_ = TestFail;
- return;
- }
-
- /*
* Atleast one camera should be available with numStreams streams,
* otherwise skip the test entirely.
*/
diff --git a/test/gstreamer/meson.build b/test/gstreamer/meson.build
index a5c003b6..f3ba5a23 100644
--- a/test/gstreamer/meson.build
+++ b/test/gstreamer/meson.build
@@ -17,5 +17,5 @@ foreach test : gstreamer_tests
link_with : test_libraries,
include_directories : test_includes_internal)
- test(test['name'], exe, suite : 'gstreamer', is_parallel : false)
+ test(test['name'], exe, suite : 'gstreamer', is_parallel : false, env : gst_env)
endforeach