if (ptr != null) {
GValueArray garray = new GValueArray(ptr);
List<StreamInfo> list = new ArrayList<StreamInfo>(garray.getNValues());
for (GValueAPI.GValue value : garray.values) {
StreamInfo streamInfo;
{ /*
* this is a work-around gst_stream_info_get_type() symbols not
* available in one of the top-level shared objects (libgstreamer or
* libgstbase). As a result, StreamInfo.class can not be registered in
* GstTypes even though if is an instance of GObject. value.getValue()