gst/gstevent.c: Register type in _get_type(), as we do for all types. Fixes some issues for bindings (#169405).

Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/gstevent.c: (_gst_event_initialize), (gst_event_get_type):
Register type in _get_type(), as we do for all types. Fixes
some issues for bindings (#169405).
This commit is contained in:
Ronald S. Bultje 2005-03-12 22:38:35 +00:00
parent f478e2c0c4
commit 7b6bc1b774
2 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2005-03-12 Torsten Schoenfeld <kaffeetisch@gmx.de>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gstevent.c: (_gst_event_initialize), (gst_event_get_type):
Register type in _get_type(), as we do for all types. Fixes
some issues for bindings (#169405).
2005-03-12 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gstindex.c: (gst_index_factory_new):

View file

@ -47,8 +47,7 @@ void
_gst_event_initialize (void)
{
/* register the type */
_gst_event_type = g_boxed_type_register_static ("GstEvent",
(GBoxedCopyFunc) gst_data_copy, (GBoxedFreeFunc) gst_data_unref);
gst_event_get_type ();
#ifndef GST_DISABLE_TRACE
_event_trace = gst_alloc_trace_register (GST_EVENT_TRACE_NAME);
@ -151,6 +150,11 @@ gst_event_masks_contains (const GstEventMask * masks, GstEventMask * mask)
GType
gst_event_get_type (void)
{
if (!_gst_event_type) {
_gst_event_type = g_boxed_type_register_static ("GstEvent",
(GBoxedCopyFunc) gst_data_copy, (GBoxedFreeFunc) gst_data_unref);
}
return _gst_event_type;
}