mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
loopback: Validate the rate parameter
This commit is contained in:
parent
12b5e7c873
commit
fc803b4883
1 changed files with 5 additions and 0 deletions
|
|
@ -799,6 +799,11 @@ int pa__init(pa_module *m) {
|
|||
goto fail;
|
||||
}
|
||||
|
||||
if (ss.rate < 4000 || ss.rate > PA_RATE_MAX) {
|
||||
pa_log("Invalid rate specification, valid range is 4000 Hz to %i Hz", PA_RATE_MAX);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (pa_modargs_get_value(ma, "format", NULL))
|
||||
format_set = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue