fallbackswitch: document the pad priority ordering

I just wasted lots of time trying to figure out why my higher priority
pad wasn't used...

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1215>
This commit is contained in:
Guillaume Desmottes 2023-05-11 15:20:41 +02:00 committed by Sebastian Dröge
parent 48cc8570e4
commit 403ac0c188
2 changed files with 4 additions and 2 deletions

View file

@ -1544,7 +1544,7 @@
"writable": false
},
"priority": {
"blurb": "Selection priority for this stream",
"blurb": "Selection priority for this stream (lower number has a higher priority)",
"conditionally-available": false,
"construct": false,
"construct-only": false,

View file

@ -138,7 +138,9 @@ impl ObjectImpl for FallbackSwitchSinkPad {
vec![
glib::ParamSpecUInt::builder(PROP_PRIORITY)
.nick("Stream Priority")
.blurb("Selection priority for this stream")
.blurb(
"Selection priority for this stream (lower number has a higher priority)",
)
.default_value(SinkSettings::default().priority)
.build(),
glib::ParamSpecBoolean::builder(PROP_IS_HEALTHY)