summaryrefslogtreecommitdiff
path: root/src/gstreamer/gstlibcamera.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gstreamer/gstlibcamera.c')
-rw-r--r--src/gstreamer/gstlibcamera.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/gstreamer/gstlibcamera.c b/src/gstreamer/gstlibcamera.c
new file mode 100644
index 00000000..7dd94ca0
--- /dev/null
+++ b/src/gstreamer/gstlibcamera.c
@@ -0,0 +1,21 @@
+/* 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 "gstlibcamerasrc.h"
+
+static gboolean
+plugin_init(GstPlugin *plugin)
+{
+ return gst_element_register(plugin, "libcamerasrc", GST_RANK_PRIMARY,
+ GST_TYPE_LIBCAMERA_SRC);
+ return TRUE;
+}
+
+GST_PLUGIN_DEFINE(GST_VERSION_MAJOR, GST_VERSION_MINOR,
+ libcamera, "libcamera capture plugin",
+ plugin_init, VERSION, "LGPL", PACKAGE, "https://libcamera.org");