]> code.delx.au - pulseaudio/commit
esound,streams: Fix some crashes.
authorColin Guthrie <colin@mageia.org>
Wed, 8 Jun 2011 19:18:12 +0000 (20:18 +0100)
committerColin Guthrie <colin@mageia.org>
Wed, 22 Jun 2011 21:45:28 +0000 (22:45 +0100)
commitec4fa4c668a61de8ed7c9452e73919ba0bb1a870
tree2cd3643615f5124322efa2b79a08d9c94c951cbc
parent32927c50a8fef49f8a24eee82bf4ca64253a3dfc
esound,streams: Fix some crashes.

After the rework to the add pa_sink_input_new_data_set_sink() (and
the source equiv) calling with a NULL sink object will hit an assert.

This caused crashes with the esd protocol and there was the potential
(albeit unlikely) for a crash when creating a sink input without any
sinks available (module-always-sink mitigates this risk but it's still
a potential crasher).
src/pulsecore/protocol-esound.c
src/pulsecore/sink-input.c
src/pulsecore/source-output.c