On Tue Oct 3 17:17:52 2023 +0000, Rémi Bernon wrote:
I think the difference comes from rank and ordering differences, vaapih264dec has an equal rank (256) as avdec_h264 (256), and we use `gst_plugin_feature_rank_compare_func` which sorts by rank, then by name, so unless you prioritize hardware decoders specifically, avdec_h264 will always be selected first.
Doh, you're right. I also overlooked the `element == NULL` part of the loop...
To make prioritizing the hardware decoder an optional thing, should it be through some environment variable? Or what would the preferred method be?
Thanks.