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/gstudpsink.c | |
parent | 1075f2109ff170d89d76106d2fec066c4472f44f (diff) |
fix for new plugin system
Original commit message from CVS:
fix for new plugin system
Diffstat (limited to 'gst/udp/gstudpsink.c')
-rw-r--r-- | gst/udp/gstudpsink.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/gst/udp/gstudpsink.c b/gst/udp/gstudpsink.c index cae46e18..e3bdcb22 100644 --- a/gst/udp/gstudpsink.c +++ b/gst/udp/gstudpsink.c @@ -28,15 +28,12 @@ #define UDP_DEFAULT_CONTROL 1 /* elementfactory information */ -GstElementDetails gst_udpsink_details = { +GstElementDetails gst_udpsink_details = GST_ELEMENT_DETAILS ( "UDP packet sender", "Sink/Network", - "LGPL", "Send data over the network via UDP", - VERSION, - "Wim Taymans <wim.taymans@chello.be>", - "(C) 2001", -}; + "Wim Taymans <wim.taymans@chello.be>" +); /* UDPSink signals and args */ enum { @@ -70,6 +67,7 @@ gst_udpsink_control_get_type(void) { return udpsink_control_type; } +static void gst_udpsink_base_init (gpointer g_class); static void gst_udpsink_class_init (GstUDPSink *klass); static void gst_udpsink_init (GstUDPSink *udpsink); @@ -92,11 +90,10 @@ gst_udpsink_get_type (void) { static GType udpsink_type = 0; - if (!udpsink_type) { static const GTypeInfo udpsink_info = { sizeof(GstUDPSinkClass), - NULL, + gst_udpsink_base_init, NULL, (GClassInitFunc)gst_udpsink_class_init, NULL, @@ -112,6 +109,14 @@ gst_udpsink_get_type (void) } static void +gst_udpsink_base_init (gpointer g_class) +{ + GstElementClass *element_class = GST_ELEMENT_CLASS (g_class); + + gst_element_class_set_details (element_class, &gst_udpsink_details); +} + +static void gst_udpsink_class_init (GstUDPSink *klass) { GObjectClass *gobject_class; |