value_can_union
function value_can_union(value1:GObject.Value, value2:GObject.Value):Boolean { // Gjs wrapper for gst_value_can_union() }
Determines if value1 and value2 can be non-trivially unioned. Any two values can be trivially unioned by adding both of them to a GstValueList. However, certain types have the possibility to be unioned in a simpler way. For example, an integer range and an integer can be unioned if the integer is a subset of the integer range. If there is the possibility that two values can be unioned, this function returns TRUE.
- value1
a value to union
- value2
another value to union
- Returns
TRUE if there is a function allowing the two values to be unioned.