]> code.delx.au - pulseaudio/commit
sink-input,source-output: Handle devices going away in unlink hooks
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Thu, 9 Feb 2012 11:20:31 +0000 (16:50 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Thu, 9 Feb 2012 11:25:48 +0000 (16:55 +0530)
commit0521db6cf75cf61162c35505ee7baf9e5f21789d
tree11927c2836f647d0c4aa0ed6a165a82134988957
parent89a49d961107ebede27d00cc4cf73df4d27495ef
sink-input,source-output: Handle devices going away in unlink hooks

If a *_UNLINK_POST hook causes a sink-input/source-output's sink/source
to go away, the subsequent attempt to update the sink/source status will
cause an assert. We deal with this by checking the sink/source status
before trying to update it.
src/pulsecore/sink-input.c
src/pulsecore/source-output.c