diff options
author | Benjamin Otte <otte@gnome.org> | 2003-11-02 22:34:11 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2003-11-02 22:34:11 +0000 |
commit | 309bd248b1e332861d4f64bc8091f4c222e6e681 (patch) | |
tree | 5309fdbbb9c318c1352f99118732a3682ae369d3 /gst/udp/gstudpsrc.c | |
parent | 1075f2109ff170d89d76106d2fec066c4472f44f (diff) |
fix for new plugin system
Original commit message from CVS:
fix for new plugin system
Diffstat (limited to 'gst/udp/gstudpsrc.c')
-rw-r--r-- | gst/udp/gstudpsrc.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c index d332b1c3..ce6362ec 100644 --- a/gst/udp/gstudpsrc.c +++ b/gst/udp/gstudpsrc.c @@ -29,15 +29,12 @@ #define UDP_DEFAULT_MULTICAST_GROUP "0.0.0.0" /* elementfactory information */ -GstElementDetails gst_udpsrc_details = { +static GstElementDetails gst_udpsrc_details = GST_ELEMENT_DETAILS ( "UDP packet receiver", "Source/Network", - "LGPL", "Receive data over the network via UDP", - VERSION, - "Wim Taymans <wim.taymans@chello.be>", - "(C) 2001", -}; + "Wim Taymans <wim.taymans@chello.be>" +); /* UDPSrc signals and args */ enum { @@ -69,6 +66,7 @@ gst_udpsrc_control_get_type(void) { return udpsrc_control_type; } +static void gst_udpsrc_base_init (gpointer g_class); static void gst_udpsrc_class_init (GstUDPSrc *klass); static void gst_udpsrc_init (GstUDPSrc *udpsrc); @@ -90,11 +88,10 @@ gst_udpsrc_get_type (void) { static GType udpsrc_type = 0; - if (!udpsrc_type) { static const GTypeInfo udpsrc_info = { sizeof(GstUDPSrcClass), - NULL, + gst_udpsrc_base_init, NULL, (GClassInitFunc)gst_udpsrc_class_init, NULL, @@ -110,6 +107,14 @@ gst_udpsrc_get_type (void) } static void +gst_udpsrc_base_init (gpointer g_class) +{ + GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); + + gst_element_class_set_details (element_class, &gst_udpsrc_details); +} + +static void gst_udpsrc_class_init (GstUDPSrc *klass) { GObjectClass *gobject_class; |