Commit 1f6e29bc authored by Wim Taymans's avatar Wim Taymans
Browse files

sys/: Register special buffer types along with the objects so that they are...

sys/: Register special buffer types along with the objects so that they are not registered at runtime from N differen...

Original commit message from CVS:
* sys/ximage/ximagesink.c: (gst_ximagesink_get_type):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_type):
Register special buffer types along with the objects so
that they are not registered at runtime from N different
streaming threads since they are not threadsafe.
parent 369dc2dd
2006-05-11 Wim Taymans <wim@fluendo.com>
* sys/ximage/ximagesink.c: (gst_ximagesink_get_type):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_type):
Register special buffer types along with the objects so
that they are not registered at runtime from N different
streaming threads since they are not threadsafe.
2006-05-10 Thomas Vander Stichele <thomas at apestaart dot org>
 
* tests/check/elements/multifdsink.c: (wait_bytes_served),
......
......@@ -2006,6 +2006,10 @@ gst_ximagesink_get_type (void)
&navigation_info);
g_type_add_interface_static (ximagesink_type, GST_TYPE_X_OVERLAY,
&overlay_info);
/* register type in a more safe place instead of at runtime since the
* type registration is not threadsafe. */
gst_ximage_buffer_get_type ();
}
return ximagesink_type;
......
......@@ -2566,6 +2566,10 @@ gst_xvimagesink_get_type (void)
&overlay_info);
g_type_add_interface_static (xvimagesink_type, GST_TYPE_COLOR_BALANCE,
&colorbalance_info);
/* make sure type is registered and not at runtime as this is not
* threadsafe */
gst_xvimage_buffer_get_type ();
}
return xvimagesink_type;
......
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