Gst.Iterator.new_single
function new_single(type:GType, object:GObject.Value):Gst.Iterator { // Gjs wrapper for gst_iterator_new_single() }
This Gst.Iterator is a convenient iterator for the common case where a Gst.Iterator needs to be returned but only a single object has to be considered. This happens often for the Gst.PadIterIntLinkFunction.
- type
GLib.Type of the passed object
- object
object that this iterator should return
- Returns
the new Gst.Iterator for object.