diff options
author | Colin Guthrie <cguthrie@mandriva.org> | 2010-10-01 01:26:43 +0100 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2010-10-05 10:13:53 +0100 |
commit | 9109a188cd3d2e4d0d400f68a00aaefd02719e6c (patch) | |
tree | 27881676a8ba9a539a3bb7cc66af9fb5081ddbc0 /src/pulsecore/ipacl.c | |
parent | a21b8328aab906f9128f4c5597115608fa4045bc (diff) |
suspend: Do not assert when checking for device suspended status and a stream is not linked.
When looping through the streams on a given device checking to see if the
stream is 'active' there should be no assert if the stream is not linked, it
should simply be ignored.
This assert can be hit if a sink and a sink input are both created and setup
but the final put calls are left to the end as is done in module-ladspa-sink.
While the order of the calls in module-ladspa-sink could be altered, we should
deal gracefully with the way it is now and not complain about ending up
in this state.
A trigger case was trivial:
1. Load a ladspa-sink.
2. Play a stream and move it to it.
3. Unload the module, then reload it.
4. Due to module-stream-restore and module-suspend-on-idle, the hook callbacks
will ultimately hit this assert.
Thanks to Kim Therkelsen for highlighting this issue.
Diffstat (limited to 'src/pulsecore/ipacl.c')
0 files changed, 0 insertions, 0 deletions