Set the event type in _new

Original commit message from CVS:
Set the event type in _new
This commit is contained in:
Wim Taymans 2001-09-10 22:29:09 +00:00
parent 792745e8a6
commit e435484b29

View file

@ -34,13 +34,13 @@ _gst_event_initialize (void)
{
gint eventsize = sizeof(GstEvent);
static const GTypeInfo event_info = {
0, //sizeof(GstElementClass),
0,
NULL,
NULL,
NULL,
NULL,
NULL,
0, //sizeof(GstElement),
0,
0,
NULL,
};
@ -68,6 +68,7 @@ gst_event_empty_new (GstEventType type)
GST_INFO (GST_CAT_EVENT, "creating new event %p", event);
GST_DATA_TYPE (event) = _gst_event_type;
GST_EVENT_TYPE (event) = type;
return event;
}