Adds gst_queue_array_sort for sorting and gst_queue_array_push_sorted{,struct} for pushing in a sorted order. All three functions accept a comparison GCompareDataFunc along with optional user_data to pass to it. In gst_queue_array_sort a small workaround was needed to correctly sort non-struct arrays. Like what _find() already does, we need to dereference our pointers first, to make sure we can use the same comparison functions everywhere. This is done via a small wrapper around the provided comparison function. The array can also wrap around (tail ends up 'before' the head), in which case we have to reorder the array (similar to what do_expand() does) to then be able to use an existing sorting function, like g_qsort_with_data(). Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5112>
This directory contains regression tests, functionality tests, examples, benchmarks, ... benchmarks/ benchmarks to profile pieces of GStreamer check/ unit tests using the check library, non-interactive examples/ small examples demonstrating the use of various features misc/ prototypes, random bits, ...