fallbacksrc: Changing the URI of the video fallback is supported in NULL state

And not just during construction.

This fixes switching from a failing video fallback to a dummy fallback,
which was added in c7fe08bf6.
This commit is contained in:
Sebastian Dröge 2022-02-24 12:29:53 +02:00
parent 249b0ac4c1
commit 29006999a4

View file

@ -79,7 +79,7 @@ impl ObjectImpl for VideoFallbackSource {
"URI", "URI",
"URI to use for video in case the main stream doesn't work", "URI to use for video in case the main stream doesn't work",
None, None,
glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY, glib::ParamFlags::READWRITE,
), ),
glib::ParamSpecUInt64::new( glib::ParamSpecUInt64::new(
"min-latency", "min-latency",
@ -88,7 +88,7 @@ impl ObjectImpl for VideoFallbackSource {
0, 0,
std::u64::MAX, std::u64::MAX,
0, 0,
glib::ParamFlags::READWRITE | glib::ParamFlags::CONSTRUCT_ONLY, glib::ParamFlags::READWRITE,
), ),
] ]
}); });