From 8ec0548f5f4c7ce3213e4639722d9cb78fc13b90 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Wed, 2 Mar 2011 11:00:49 +0530 Subject: sink-input: Return NOTSUPPORTED if format negotiation fails This is easier for clients to grok than INVALID. --- src/pulsecore/sink-input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pulsecore') diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index 92e364f8..1706a7fb 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -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 */ -- cgit