gst/gstbuffer.c: Register subbufer along with the buffer type so that it does not accidentally gets registered from N...

Original commit message from CVS:
* gst/gstbuffer.c: (_gst_buffer_initialize):
Register subbufer along with the buffer type so that
it does not accidentally gets registered from N
different streaming threads in a non threadsafe way.
This commit is contained in:
Wim Taymans 2006-05-11 10:35:14 +00:00
parent f2cee82949
commit c4e715f316
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2006-05-11 Wim Taymans <wim@fluendo.com>
* gst/gstbuffer.c: (_gst_buffer_initialize):
Register subbufer along with the buffer type so that
it does not accidentally gets registered from N
different streaming threads in a non threadsafe way.
2006-05-10 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstbuffer.h:

View file

@ -121,7 +121,7 @@ static void gst_buffer_init (GTypeInstance * instance, gpointer g_class);
static void gst_buffer_class_init (gpointer g_class, gpointer class_data);
static void gst_buffer_finalize (GstBuffer * buffer);
static GstBuffer *_gst_buffer_copy (GstBuffer * buffer);
static GType gst_subbuffer_get_type (void);
void
_gst_buffer_initialize (void)
@ -129,6 +129,7 @@ _gst_buffer_initialize (void)
gpointer ptr;
gst_buffer_get_type ();
gst_subbuffer_get_type ();
/* the GstMiniObject types need to be class_ref'd once before it can be
* done from multiple threads;