diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-03-02 11:00:49 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-05-02 11:54:48 +0530 |
commit | 8ec0548f5f4c7ce3213e4639722d9cb78fc13b90 (patch) | |
tree | 5c1cc4e8ed7bda436378e44c8b820b4795e59cad /src/pulsecore/sink-input.c | |
parent | 5d5523604f03ac7d6b8f67569ed4ac6c06c72463 (diff) |
sink-input: Return NOTSUPPORTED if format negotiation fails
This is easier for clients to grok than INVALID.
Diffstat (limited to 'src/pulsecore/sink-input.c')
-rw-r--r-- | src/pulsecore/sink-input.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |