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:
@@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user