summaryrefslogtreecommitdiffstats
path: root/gst/udp/gstudp.c
diff options
context:
space:
mode:
authorPhilippe Kalaf <philippe.kalaf@collabora.co.uk>2005-07-01 20:56:07 +0000
committerPhilippe Kalaf <philippe.kalaf@collabora.co.uk>2005-07-01 20:56:07 +0000
commitc88ac33128a2026da0e9f94c930360805c0f67e0 (patch)
treee5b780faffc508ae99b239454ad4c36f1521e987 /gst/udp/gstudp.c
parent0f9c0996fc88f140f4c9292abfe1c521a1c9fad6 (diff)
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.
Diffstat (limited to 'gst/udp/gstudp.c')
-rw-r--r--gst/udp/gstudp.c5
1 files changed, 5 insertions, 0 deletions
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;