• Max Kellermann's avatar
    output/alsa: clear the `period_buffer` in LockCaughtError() · 3830748d
    Max Kellermann authored
    The method Cancel() assumes that the `period_buffer` must be empty
    when `active==false`, but that is not the case when Play() fails.
    
    Of course the assertion in Cancel() is not 100% correct, but I decided
    to rather fix this in LockCaughtError() because the `period_buffer`
    should only be accessed from within the RTIO thread, and this is the
    only code path where `active` can be set to `false` with a non-empty
    `period_buffer`.
    
    Fixes #423
    3830748d
AlsaOutputPlugin.cxx 23.1 KB