mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 08:35:07 +03:00
Macros used in gstreamer (e.g. G_DEFINE_TYPE) are functions. The end semicolons with the macros are unnecessary. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
27 lines
742 B
C++
27 lines
742 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2019, Collabora Ltd.
|
|
* Author: Nicolas Dufresne <nicolas.dufresne@collabora.com>
|
|
*
|
|
* gstlibcamera.c - GStreamer plugin
|
|
*/
|
|
|
|
#include "gstlibcameraprovider.h"
|
|
#include "gstlibcamerasrc.h"
|
|
|
|
static gboolean
|
|
plugin_init(GstPlugin *plugin)
|
|
{
|
|
if (!gst_element_register(plugin, "libcamerasrc", GST_RANK_PRIMARY,
|
|
GST_TYPE_LIBCAMERA_SRC) ||
|
|
!gst_device_provider_register(plugin, "libcameraprovider",
|
|
GST_RANK_PRIMARY,
|
|
GST_TYPE_LIBCAMERA_PROVIDER))
|
|
return FALSE;
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
GST_PLUGIN_DEFINE(GST_VERSION_MAJOR, GST_VERSION_MINOR,
|
|
libcamera, "libcamera capture plugin",
|
|
plugin_init, VERSION, "LGPL", PACKAGE, "https://libcamera.org")
|