diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2007-04-11 10:25:25 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2007-04-11 10:25:25 +0000 |
commit | bd11d3c9d2ed40b62d91d841949bb62ceb109366 (patch) | |
tree | 7348b00b2728a2684c2ef72e9f3a9334a8acedf4 /gst/udp | |
parent | cc6d9363e45829cbf3562964482c803283c81a82 (diff) |
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.
Diffstat (limited to 'gst/udp')
-rw-r--r-- | gst/udp/gstudp.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |