put(EventType.TAG, TagEvent.class);
put(EventType.QOS, QOSEvent.class);
}};
public static Class<? extends NativeObject> subtypeFor(Pointer ptr) {
GstEventAPI.EventStruct struct = new GstEventAPI.EventStruct(ptr);
EventType type = EventType.valueOf((Integer) struct.readField("type"));
Class<? extends Event> eventClass = MapHolder.typeMap.get(type);
return eventClass != null ? eventClass : Event.class;
}