alsa/NonBlock: throw on snd_pcm_poll_descriptors_revents() error

This function is sparsely documented and a look at the bluez-alsa
source code shows that implementations make undocumented assumptions
on the `struct pollfd` array parameter which can lead to strange
effects.
This commit is contained in:
Max Kellermann
2018-12-04 18:00:52 +01:00
parent 9c5790ab1d
commit 5cb603983e
2 changed files with 8 additions and 3 deletions

View File

@@ -45,8 +45,10 @@ public:
/**
* Wrapper for snd_pcm_poll_descriptors_revents(), to be
* called from MultiSocketMonitor::DispatchSockets().
*
* Throws on error.
*/
void DispatchSockets(MultiSocketMonitor &m, snd_pcm_t *pcm) noexcept;
void DispatchSockets(MultiSocketMonitor &m, snd_pcm_t *pcm);
};
/**