test: gstreamer: Fix indentation in comments

A couple of comments are mis-indented in the gstreamer unit test. Fix
them, and reflow the text while at it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2023-12-05 18:04:27 +02:00
parent 4eba2dc73c
commit d61104fa7b

View file

@ -31,15 +31,14 @@ GstreamerTest::GstreamerTest(unsigned int numStreams)
: pipeline_(nullptr), libcameraSrc_(nullptr) : pipeline_(nullptr), libcameraSrc_(nullptr)
{ {
/* /*
* GStreamer by default spawns a process to run the * GStreamer by default spawns a process to run the gst-plugin-scanner
* gst-plugin-scanner helper. If libcamera is compiled with ASan * helper. If libcamera is compiled with ASan enabled, and as GStreamer
* enabled, and as GStreamer is most likely not, this causes the * is most likely not, this causes the ASan link order check to fail
* ASan link order check to fail when gst-plugin-scanner * when gst-plugin-scanner dlopen()s the plugin as many libraries will
* dlopen()s the plugin as many libraries will have already been * have already been loaded by then. Fix this issue by disabling
* loaded by then. Fix this issue by disabling spawning of a * spawning of a child helper process when scanning the build directory
* child helper process when scanning the build directory for * for plugins.
* plugins. */
*/
gst_registry_fork_set_enabled(false); gst_registry_fork_set_enabled(false);
/* Initialize GStreamer */ /* Initialize GStreamer */
@ -53,9 +52,9 @@ GstreamerTest::GstreamerTest(unsigned int numStreams)
} }
/* /*
* Remove the system libcamera plugin, if any, and add the * Remove the system libcamera plugin, if any, and add the plugin from
* plugin from the build directory. * the build directory.
*/ */
GstRegistry *registry = gst_registry_get(); GstRegistry *registry = gst_registry_get();
g_autoptr(GstPlugin) plugin = gst_registry_lookup(registry, "libgstlibcamera.so"); g_autoptr(GstPlugin) plugin = gst_registry_lookup(registry, "libgstlibcamera.so");
if (plugin) if (plugin)