plugin_LTLIBRARIES = \
- libgstv4l2element.la \
- libgstv4l2src.la
+ libgstvideo4linux2.la
-libgstv4l2element_la_SOURCES = gstv4l2element.c v4l2_calls.c v4l2-overlay_calls.c gstv4l2element-marshal.c
-libgstv4l2element_la_CFLAGS = $(GST_CFLAGS)
-libgstv4l2element_la_LIBADD =
-libgstv4l2element_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-
-libgstv4l2src_la_SOURCES = gstv4l2src.c v4l2src_calls.c
-libgstv4l2src_la_CFLAGS = $(GST_CFLAGS)
-libgstv4l2src_la_LIBADD = libgstv4l2element.la
-libgstv4l2src_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
+libgstvideo4linux2_la_SOURCES = \
+ gstv4l2element.c v4l2_calls.c \
+ v4l2-overlay_calls.c \
+ gstv4l2element-marshal.c \
+ gstv4l2src.c v4l2src_calls.c
+libgstvideo4linux2_la_CFLAGS = $(GST_CFLAGS)
+libgstvideo4linux2_la_LIBADD =
+libgstvideo4linux2_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
noinst_HEADERS = gstv4l2element.h v4l2_calls.h \
- gstv4l2src.h v4l2src_calls.h gstv4l2element-marshal.h
+ gstv4l2src.h v4l2src_calls.h \
+ gstv4l2element-marshal.h
-EXTRA_libgstv4l2element_la_SOURCES = \
+EXTRA_libgstvideo4linux2_la_SOURCES = \
gstv4l2element-marshal.list
BUILT_SOURCES = \
--- /dev/null
+/* G-Streamer Video4linux2 video-capture plugin
+ * Copyright (C) 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
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <gst/gst.h>
+
+#include "gstv4l2element.h"
+#include "gstv4l2src.h"
+
+gboolean
+plugin_init (GModule *module,
+ GstPlugin *plugin)
+{
+ if (!gst_v4l2element_factory_init (plugin) ||
+ !gst_v4l2src_factory_init (plugin)) {
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+GstPluginDesc plugin_desc = {
+ GST_VERSION_MAJOR,
+ GST_VERSION_MINOR,
+ "video4linux2",
+ plugin_init
+};
}
-static gboolean
-plugin_init (GModule *module,
- GstPlugin *plugin)
+gboolean
+gst_v4l2element_factory_init (GstPlugin *plugin)
{
GstElementFactory *factory;
return TRUE;
}
-
-
-GstPluginDesc plugin_desc = {
- GST_VERSION_MAJOR,
- GST_VERSION_MINOR,
- "v4l2element",
- plugin_init
-};
GType gst_v4l2element_get_type (void);
+gboolean gst_v4l2element_factory_init (GstPlugin *plugin);
+
#endif /* __GST_V4L2ELEMENT_H__ */
}
-static gboolean
-plugin_init (GModule *module,
- GstPlugin *plugin)
+gboolean
+gst_v4l2src_factory_init (GstPlugin *plugin)
{
GstElementFactory *factory;
return TRUE;
}
-
-
-GstPluginDesc plugin_desc = {
- GST_VERSION_MAJOR,
- GST_VERSION_MINOR,
- "v4l2src",
- plugin_init
-};
GType gst_v4l2src_get_type(void);
+gboolean gst_v4l2src_factory_init (GstPlugin *plugin);
+
#endif /* __GST_V4L2SRC_H__ */