pluginfeature: Allow updating initial rank of plugin feature
authorSeungha Yang <seungha.yang@navercorp.com>
Thu, 15 Aug 2019 11:56:40 +0000 (20:56 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 26 Dec 2019 19:49:00 +0000 (19:49 +0000)
commit52706146f58a660f1bf448dfbd119b19a954d2c9
tree67d0078055162f067ed82853f05e78a5c2b4d191
parent72daeee2c469c157e23b3c58c7fe5e88d3bb4658
pluginfeature: Allow updating initial rank of plugin feature

Introducing "GST_PLUGIN_FEATURE_RANK" environment variable in order for users
to adjust rank of plugin(s) via environment.

A "feature" and "rank" key-value pair should be separable by ":",
and each key-value pair is recognized per "," delimiters. The rank
can be a numerical value or one of pre-defined rank values
such as "NONE", "MARGINAL", "SECONDARY", and "PRIMARY" in case-insensitive manner.

In addition to pre-defined { NONE, MARGINAL, SECONDARY, PRIMARY },
"MAX" can be passed to key value used to ensure having a higher rank
than other plugin features.

Example)
- GST_PLUGIN_FEATURE_RANK=qtdemux:256,h264parse:NONE
Set rank of qtdemux plugin to 256 (primary) and 0 (none) for h264parse.
docs/gst/running.md
gst/gst.c
gst/gst_private.h
gst/gstpluginfeature.c