OSDN Git Service

pcm: plugin status - fix the return value (regression)
authorJaroslav Kysela <perex@perex.cz>
Wed, 30 Dec 2020 08:31:10 +0000 (09:31 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 30 Dec 2020 08:38:04 +0000 (09:38 +0100)
commitafe6ff3b33ee6e5ea3511fe458bfd4e516b10bcf
tree4898be3c547b629e6460dae519bb7023faee008b
parent6c24cd2e60cc9c1fca809ffeeb7ffe8af94b201e
pcm: plugin status - fix the return value (regression)

The snd_pcm_plugin_avail_update() error code in snd_pcm_plugin_status()
should not be reported to the caller. The state errors can be determined
using the state member in the status structure.

Fixes: 4f90392f07e ("pcm: fix the snd_pcm_plugin_status() avail and delay fields")
BugLink: https://github.com/alsa-project/alsa-lib/issues/107
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_plugin.c