• borine's avatar
    input/plugins/Alsa: catch all exceptions · 2fb34697
    borine authored
    snd_pcm_poll_descriptors_revents() may return any error code; the
    ALSA docs do not constrain the permitted values. A 'hw' device
    will only ever return an error if the pfd array passed in is
    invalid (-EINVAL), but other I/O plugins may return arbitary
    errors. For example a network-based device may return -EPIPE etc.
    The resulting exception thrown by
    AlsaNonBlockPcm::DispatchSockets() must be caught to prevent the
    mpd process from being aborted.
    2fb34697
AlsaInputPlugin.cxx 13.4 KB