diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-11-02 17:02:51 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-11-02 17:02:51 +0000 |
commit | c75664e083f7dbf183d2ff1e80139775fb2b7711 (patch) | |
tree | cd8cd221d29b86459164e98ea2ced306669ebdd0 /sys/v4l2/gstv4l2.c | |
parent | eabfbf13fc047855e176732caad160f4f12d1fe0 (diff) | |
download | gst-plugins-bad-c75664e083f7dbf183d2ff1e80139775fb2b7711.tar.gz gst-plugins-bad-c75664e083f7dbf183d2ff1e80139775fb2b7711.tar.bz2 gst-plugins-bad-c75664e083f7dbf183d2ff1e80139775fb2b7711.zip |
hmm...
Original commit message from CVS:
hmm...
Diffstat (limited to 'sys/v4l2/gstv4l2.c')
-rw-r--r-- | sys/v4l2/gstv4l2.c | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/sys/v4l2/gstv4l2.c b/sys/v4l2/gstv4l2.c index 8ad7b319..59ab419c 100644 --- a/sys/v4l2/gstv4l2.c +++ b/sys/v4l2/gstv4l2.c @@ -27,20 +27,31 @@ #include "gstv4l2src.h" gboolean -plugin_init (GModule *module, - GstPlugin *plugin) +plugin_init (GstPlugin *plugin) { - if (!gst_v4l2element_factory_init (plugin) || - !gst_v4l2src_factory_init (plugin)) { + /* actually, we can survive without it, but I'll create + * that handling later on. */ + if (!gst_library_load ("xwindowlistener")) + return FALSE; + + if (!gst_element_register (plugin, "v4l2element", + GST_RANK_NONE, GST_TYPE_V4L2ELEMENT) || + !gst_element_register (plugin, "v4l2src", + GST_RANK_NONE, GST_TYPE_V4L2SRC)) return FALSE; - } return TRUE; } -GstPluginDesc plugin_desc = { - GST_VERSION_MAJOR, - GST_VERSION_MINOR, - "video4linux2", - plugin_init -}; +GST_PLUGIN_DEFINE ( + GST_VERSION_MAJOR, + GST_VERSION_MINOR, + "video4linux2", + "elements for Video 4 Linux 2", + plugin_init, + VERSION, + GST_LICENSE, + GST_COPYRIGHT, + GST_PACKAGE, + GST_ORIGIN +) |