Commit bd11d3c9 authored by Wim Taymans's avatar Wim Taymans

gst/udp/gstudp.c: Register GstNetBuffer in plugin_init so that the type can be...

gst/udp/gstudp.c: Register GstNetBuffer in plugin_init so that the type can be used from multiple threads without races.

Original commit message from CVS:
* gst/udp/gstudp.c: (plugin_init):
Register GstNetBuffer in plugin_init so that the type can be used from
multiple threads without races.
parent cc6d9363
2007-04-11 Wim Taymans <wim@fluendo.com>
* gst/udp/gstudp.c: (plugin_init):
Register GstNetBuffer in plugin_init so that the type can be used from
multiple threads without races.
2007-04-10 Wim Taymans <wim@fluendo.com>
* gst/rtp/gstrtpamrdepay.c: (gst_rtp_amr_depay_setcaps),
......
......@@ -21,6 +21,8 @@
#include "config.h"
#endif
#include <gst/netbuffer/gstnetbuffer.h>
#include "gstudpsrc.h"
#include "gstmultiudpsink.h"
#include "gstudpsink.h"
......@@ -34,6 +36,10 @@ plugin_init (GstPlugin * plugin)
return FALSE;
#endif
/* register type of the netbuffer so that we can use it from multiple threads
* right away. Note that the plugin loading is always serialized */
gst_netbuffer_get_type ();
if (!gst_element_register (plugin, "udpsink", GST_RANK_NONE,
GST_TYPE_UDPSINK))
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment