28 Dec
2020
28 Dec
'20
2:45 a.m.
On Sun, Dec 27, 2020 at 5:36 AM Jaroslav Kysela perex@perex.cz wrote:
Dne 27. 12. 20 v 9:34 Takashi Iwai napsal(a):
We need either to handle a special error value in all places calling __snd_pcm_state() or to just return SND_PCM_STATE_XRUN or such instead here, IMO.
I think that SND_PCM_STATE_OPEN is more appropriate here. If the state callback is not defined, the state management is screwed anyway. The other functions will return an error (because they depend on the state management), so it's safe. I applied this change to repo.
Thank you for fixing this properly!
-Alex