[farsight2/master] Pre-register netbuffer because gst type registeration inst thread safe

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:23:50 PST 2008


---
 transmitters/rawudp/fs-rawudp-component.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/transmitters/rawudp/fs-rawudp-component.c b/transmitters/rawudp/fs-rawudp-component.c
index 623b709..8b4287a 100644
--- a/transmitters/rawudp/fs-rawudp-component.c
+++ b/transmitters/rawudp/fs-rawudp-component.c
@@ -210,6 +210,10 @@ fs_rawudp_component_register_type (FsPlugin *module)
     (GInstanceInitFunc) fs_rawudp_component_init
   };
 
+  /* Required becaues the GST type registration is not thread safe */
+
+  GST_TYPE_NETBUFFER;
+
   type = g_type_module_register_type (G_TYPE_MODULE (module),
       G_TYPE_OBJECT, "FsRawUdpComponent", &info, 0);
 
-- 
1.5.6.5




More information about the farsight-commits mailing list