settings: add an option to check quantum/rate in settings

Add an option to check if the rate and quantum configured with the
settings metadata is in the allowed range.

This is false by default, you can use metadata to set any rate/quantum
but in a minimal controlled setup you might want to restrict this.
This commit is contained in:
Wim Taymans 2022-01-19 15:55:43 +01:00
parent d2114c3f2e
commit b3e7d2b72a
4 changed files with 28 additions and 4 deletions

View file

@ -32,6 +32,9 @@ context.properties = {
#default.video.rate.num = 25
#default.video.rate.denom = 1
#
settings.check-quantum = true
settings.check-rate = true
#
# These overrides are only applied when running in a vm.
vm.overrides = {
default.clock.min-quantum = 1024

View file

@ -32,6 +32,9 @@ context.properties = {
#default.video.rate.num = 25
#default.video.rate.denom = 1
#
#settings.check-quantum = false
#settings.check-rate = false
#
# These overrides are only applied when running in a vm.
vm.overrides = {
default.clock.min-quantum = 1024