mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
Set the event type in _new
Original commit message from CVS: Set the event type in _new
This commit is contained in:
parent
792745e8a6
commit
e435484b29
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue