Gst.Structure.prototype.get_fraction
function get_fraction(fieldname:String):Boolean { // Gjs wrapper for gst_structure_get_fraction() }
Sets the integers pointed to by value_numerator and value_denominator corresponding to the value of the given field. Caller is responsible for making sure the field exists and has the correct type.
- fieldname
the name of a field
- Returns
TRUE if the values could be set correctly. If there was no field with fieldname or the existing field did not contain a GstFraction, this function returns FALSE.