pulseaudio/src
Tanu Kaskinen ee1a964994 sink-input, source-output: Don't crash if format negotiation fails
A segfault was reported on this line:

pa_return_val_if_fail(PA_SINK_IS_LINKED(pa_sink_get_state(data->sink)), -PA_ERR_BADSTATE);

After expanding the pa_sink_get_state() macro, the line looks like
this:

pa_return_val_if_fail(PA_SINK_IS_LINKED(data->sink->state), -PA_ERR_BADSTATE);

So data->sink was apparently NULL. That could happen if we try to fall
back to the default sink, but format negotiation fails.

This bug was introduced in commit
71816ecb7f.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=74646
2014-02-14 16:04:32 +02:00
..
daemon man: improve man page and help for cmdline options 2014-02-07 16:20:49 +02:00
modules dbus: Use correct idxset when getting sources 2014-02-11 12:02:28 +02:00
pulse introspect, thread-mainloop: Fix Doxygen "since" tags 2014-01-23 11:21:58 +02:00
pulsecore sink-input, source-output: Don't crash if format negotiation fails 2014-02-14 16:04:32 +02:00
tests volume-test: Increase the allowed number of rouding errors 2014-01-03 14:15:31 +02:00
utils introspect: Fix ABI break introduced by b98a2e1 2013-11-05 21:26:34 +02:00
.gitignore bluetooth: Remove module-bluetooth-proximity 2013-09-29 16:54:36 +03:00
depmod.py remove remaining $ 2008-06-18 22:38:32 +02:00
Makefile.am build-sys: Move ORC_SOURCE definitions outside of "if HAVE_ORC" 2014-01-24 22:56:27 +02:00
map-file Add pa_channels_valid() 2013-12-15 11:44:35 +01:00