sink-input: Return NOTSUPPORTED if format negotiation fails

This is easier for clients to grok than INVALID.
This commit is contained in:
Arun Raghavan 2011-03-02 11:00:49 +05:30
parent 5d5523604f
commit 8ec0548f5f

View file

@ -276,7 +276,7 @@ int pa_sink_input_new(
if (!data->format && data->nego_formats && !pa_idxset_isempty(data->nego_formats))
data->format = pa_format_info_copy(pa_idxset_first(data->nego_formats, NULL));
pa_return_val_if_fail(data->format, -PA_ERR_INVALID);
pa_return_val_if_fail(data->format, -PA_ERR_NOTSUPPORTED);
/* Now populate the sample spec and format according to the final
* format that we've negotiated */