From c88ac33128a2026da0e9f94c930360805c0f67e0 Mon Sep 17 00:00:00 2001 From: Philippe Kalaf Date: Fri, 1 Jul 2005 20:56:07 +0000 Subject: gst/udp/: (new) Original commit message from CVS: * gst/udp/Makefile.am: * gst/udp/gstudp.c: * gst/udp/gstdynudpsink.c: (new) * gst/udp/gstdynudpsink.h: (new) Added new element (udpdynsink) that receives GstNetBuffers and sends the udp packets to the source given in the buffer. It's used by rtpsession element for now. * gst/udp/gstudpsrc.c: Fixed memory leak. --- gst/udp/gstudp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gst/udp/gstudp.c') diff --git a/gst/udp/gstudp.c b/gst/udp/gstudp.c index e99c2454..232d9774 100644 --- a/gst/udp/gstudp.c +++ b/gst/udp/gstudp.c @@ -24,6 +24,7 @@ #include "gstudpsrc.h" #include "gstmultiudpsink.h" #include "gstudpsink.h" +#include "gstdynudpsink.h" static gboolean plugin_init (GstPlugin * plugin) @@ -36,6 +37,10 @@ plugin_init (GstPlugin * plugin) GST_TYPE_MULTIUDPSINK)) return FALSE; + if (!gst_element_register (plugin, "dynudpsink", GST_RANK_NONE, + GST_TYPE_DYNUDPSINK)) + return FALSE; + if (!gst_element_register (plugin, "udpsrc", GST_RANK_NONE, GST_TYPE_UDPSRC)) return FALSE; -- cgit