summaryrefslogtreecommitdiffstats
path: root/sys/v4l2/gstv4l2.c
diff options
context:
space:
mode:
authorEdgard Lima <edgard.lima@indt.org.br>2006-03-11 22:50:03 +0000
committerEdgard Lima <edgard.lima@indt.org.br>2006-03-11 22:50:03 +0000
commitc0dbf256833beb2ffddabf284f825ce547ca44e5 (patch)
tree2251eada52c5b1348423084608f08c71f84ff64b /sys/v4l2/gstv4l2.c
parent87da9d51153dab1d3034a865a2554e4e075f4ccc (diff)
downloadgst-plugins-bad-c0dbf256833beb2ffddabf284f825ce547ca44e5.tar.gz
gst-plugins-bad-c0dbf256833beb2ffddabf284f825ce547ca44e5.tar.bz2
gst-plugins-bad-c0dbf256833beb2ffddabf284f825ce547ca44e5.zip
V4L2 ported to 0.10.
Original commit message from CVS: V4L2 ported to 0.10.
Diffstat (limited to 'sys/v4l2/gstv4l2.c')
-rw-r--r--sys/v4l2/gstv4l2.c32
1 files changed, 23 insertions, 9 deletions
diff --git a/sys/v4l2/gstv4l2.c b/sys/v4l2/gstv4l2.c
index b81080b2..23da8da1 100644
--- a/sys/v4l2/gstv4l2.c
+++ b/sys/v4l2/gstv4l2.c
@@ -1,5 +1,8 @@
-/* G-Streamer Video4linux2 video-capture plugin
- * Copyright (C) 2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
+/* GStreamer
+ *
+ * gstv4l2.c: plugin for v4l2 elements
+ *
+ * Copyright (C) 2001-2002 Ronald Bultje <rbultje@ronald.bitfreak.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -21,20 +24,31 @@
#include "config.h"
#endif
-#include <gst/gst.h>
-
#include "gst/gst-i18n-plugin.h"
+#include <gst/gst.h>
+
#include "gstv4l2element.h"
#include "gstv4l2src.h"
+/* #include "gstv4l2jpegsrc.h" */
+/* #include "gstv4l2mjpegsrc.h" */
+/* #include "gstv4l2mjpegsink.h" */
+
+GST_DEBUG_CATEGORY (v4l2_debug); /* used in v4l2_calls.c and v4l2src_calls.c */
static gboolean
plugin_init (GstPlugin * plugin)
{
- if (!gst_element_register (plugin, "v4l2element",
- GST_RANK_NONE, GST_TYPE_V4L2ELEMENT) ||
- !gst_element_register (plugin, "v4l2src",
- GST_RANK_NONE, GST_TYPE_V4L2SRC))
+ GST_DEBUG_CATEGORY_INIT (v4l2_debug, "v4l2", 0, "V4L2 API calls");
+
+ if (!gst_element_register (plugin, "v4l2src", GST_RANK_NONE,
+ GST_TYPE_V4L2SRC))
+ /* !gst_element_register (plugin, "v4l2jpegsrc", */
+ /* GST_RANK_NONE, GST_TYPE_V4L2JPEGSRC) || */
+ /* !gst_element_register (plugin, "v4l2mjpegsrc", */
+ /* GST_RANK_NONE, GST_TYPE_V4L2MJPEGSRC) || */
+ /* !gst_element_register (plugin, "v4l2mjpegsink", */
+ /* GST_RANK_NONE, GST_TYPE_V4L2MJPEGSINK)) */
return FALSE;
#ifdef ENABLE_NLS
@@ -48,5 +62,5 @@ plugin_init (GstPlugin * plugin)
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"video4linux2",
- "elements for Video 4 Linux 2",
+ "elements for Video 4 Linux",
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE, GST_ORIGIN)