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.
This commit is contained in:
Wim Taymans 2007-04-11 10:25:25 +00:00
parent cc6d9363e4
commit bd11d3c9d2
2 changed files with 12 additions and 0 deletions

View file

@ -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),

View file

@ -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;