rank_compare_func
function rank_compare_func(p1:gpointer, p2:gpointer):Number { // Gjs wrapper for gst_plugin_feature_rank_compare_func() }
Compares the two given Gst.PluginFeature instances. This function can be used as a GLib.CompareFunc when sorting by rank and then by name.
- p1
- p2
- Returns
negative value if the rank of p1 > the rank of p2 or the ranks are equal but the name of p1 comes before the name of p2; zero if the rank and names are equal; positive value if the rank of p1 < the rank of p2 or the ranks are equal but the name of p2 comes before the name of p1