]> git.alsa-project.org Git - alsa-lib.git/commit
pcm_plug: Clear plugins on all error conditions
authorMichael Forney <mforney@mforney.org>
Thu, 20 Oct 2016 01:22:56 +0000 (18:22 -0700)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 Oct 2016 05:05:12 +0000 (07:05 +0200)
commitced8722f7d98c946d1429e46252ccc061272d0db
tree719cea389589655a11c9208c21eca2f90eccaad8
parent4dfae1adb31440a37e2183626518f1373eb38b15
pcm_plug: Clear plugins on all error conditions

Otherwise, they will linger after the error is returned (but pcm->setup == 0).
Then, if the caller tries to clean up and call snd_pcm_close(), the assertion
plug->gen.slave == plug->req_slave will fail.

Signed-off-by: Michael Forney <mforney@mforney.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_plug.c