• 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
Name
Last commit
Last update
..
plugins Loading commit data...
Client.hxx Loading commit data...
Control.cxx Loading commit data...
Control.hxx Loading commit data...
Defaults.cxx Loading commit data...
Defaults.hxx Loading commit data...
Domain.cxx Loading commit data...
Domain.hxx Loading commit data...
Filtered.cxx Loading commit data...
Filtered.hxx Loading commit data...
Finish.cxx Loading commit data...
Init.cxx Loading commit data...
Interface.cxx Loading commit data...
Interface.hxx Loading commit data...
MultipleOutputs.cxx Loading commit data...
MultipleOutputs.hxx Loading commit data...
OutputAPI.hxx Loading commit data...
OutputCommand.cxx Loading commit data...
OutputCommand.hxx Loading commit data...
OutputPlugin.cxx Loading commit data...
OutputPlugin.hxx Loading commit data...
Print.cxx Loading commit data...
Print.hxx Loading commit data...
Registry.cxx Loading commit data...
Registry.hxx Loading commit data...
SharedPipeConsumer.cxx Loading commit data...
SharedPipeConsumer.hxx Loading commit data...
Source.cxx Loading commit data...
Source.hxx Loading commit data...
State.cxx Loading commit data...
State.hxx Loading commit data...
Thread.cxx Loading commit data...
Timer.cxx Loading commit data...
Timer.hxx Loading commit data...
meson.build Loading commit data...