put(QueryType.SEEKING, SeekingQuery.class);
put(QueryType.SEGMENT, SegmentQuery.class);
}};
public static Class<? extends NativeObject> subtypeFor(Pointer ptr) {
GstQueryAPI.QueryStruct struct = new GstQueryAPI.QueryStruct(ptr);
QueryType type = QueryType.valueOf((Integer) struct.readField("type"));
Class<? extends Query> queryClass = typeMap.get(type);
return queryClass != null ? queryClass : Query.class;
}