gst_base_sink_get_stats documentation is misleading
The documentation for GstBaseSink / gst_base_sink_get_stats at https://gstreamer.freedesktop.org/documentation/base/gstbasesink.html?gi-language=c#gst_base_sink_get_stats says
"average-rate" G_TYPE_DOUBLE average frame rate,
suggesting the property can be used to get the video frame rate, for example.
Playing a file with 30000/1001 frame rate, the values reported vary between 0.11 and 0.17.
fpsdisplaysink does not use frame-stats.
Perhaps the documentation could be more precise as to the meaning and intent of this property.