diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gst/udp/gstudp.c | 6 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,9 @@ +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), diff --git a/gst/udp/gstudp.c b/gst/udp/gstudp.c index b6c85203..fbdbfea2 100644 --- a/gst/udp/gstudp.c +++ b/gst/udp/gstudp.c @@ -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; |