mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
sink-input: Return NOTSUPPORTED if format negotiation fails
This is easier for clients to grok than INVALID.
This commit is contained in:
parent
5d5523604f
commit
8ec0548f5f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue