diff options
author | wm4 <wm4@nowhere> | 2016-01-05 19:37:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-05 19:37:08 +0100 |
commit | 861c126b086fb72c8b7bb4c6552241054d8b74b3 (patch) | |
tree | 2b3cf7fb7a71048d331516b2c7c76412f511d887 /audio | |
parent | 8fda7247ff89db8dd26abfafc0ada02090374699 (diff) |
ao_pulse: check for sample rate bounds
pa_format_info_valid() does not do this. (Although there is a proposed
patch on the PulseAudio mailing list.)
See #2654.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_pulse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_pulse.c b/audio/out/ao_pulse.c index 177f02e0a5..13813745f9 100644 --- a/audio/out/ao_pulse.c +++ b/audio/out/ao_pulse.c @@ -406,7 +406,7 @@ static bool set_format(struct ao *ao, pa_format_info *format) pa_format_info_set_channels(format, ao->channels.num); pa_format_info_set_channel_map(format, &map); - return pa_format_info_valid(format); + return ao->samplerate < PA_RATE_MAX && pa_format_info_valid(format); } static int init(struct ao *ao) |