summaryrefslogtreecommitdiffstats
path: root/ext/raw1394/gst1394.c
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2003-11-02 03:08:13 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2003-11-02 03:08:13 +0000
commit4ffbacc2f2671d4b92849c9ecaa81aa5545e3496 (patch)
tree11acd84ad5b13540a6bd8e6b92d1396f1d4fae10 /ext/raw1394/gst1394.c
parent772904f67fb8a6d8c1600ab3b8c1424f00a174db (diff)
Updated for the new plugin loading code
Original commit message from CVS: Updated for the new plugin loading code
Diffstat (limited to 'ext/raw1394/gst1394.c')
-rw-r--r--ext/raw1394/gst1394.c36
1 files changed, 12 insertions, 24 deletions
diff --git a/ext/raw1394/gst1394.c b/ext/raw1394/gst1394.c
index 3ed0f59f..f8ed5148 100644
--- a/ext/raw1394/gst1394.c
+++ b/ext/raw1394/gst1394.c
@@ -26,37 +26,25 @@
#include "gstdv1394src.h"
-/* elementfactory information */
-static GstElementDetails gst_dv1394src_details = {
- "Firewire (1394) DV Source",
- "Source/Video",
- "LGPL",
- "Source for DV video data from firewire port",
- VERSION,
- "Erik Walthinsen <omega@temple-baptist.com>\n"
- "Daniel Fischer <dan@f3c.com>",
- "(C) 2001-2002",
-};
-
-
static gboolean
-plugin_init (GModule *module, GstPlugin *plugin)
+plugin_init (GstPlugin *plugin)
{
- GstElementFactory *factory;
-
- factory = gst_element_factory_new("dv1394src",GST_TYPE_DV1394SRC,
- &gst_dv1394src_details);
- g_return_val_if_fail(factory != NULL, FALSE);
-
- gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (factory));
+ if (!gst_element_register(plugin, "dv1394src", GST_RANK_NONE, GST_TYPE_DV1394SRC))
+ return FALSE;
return TRUE;
}
-GstPluginDesc plugin_desc = {
+GST_PLUGIN_DEFINE(
GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"gst1394",
- plugin_init
-};
+ "Source for DV data via IEEE1394 interface",
+ plugin_init,
+ VERSION,
+ "LGPL",
+ GST_COPYRIGHT,
+ GST_PACKAGE,
+ GST_ORIGIN
+);