mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
sink-input: Don't print an error if a passthrough connection fails
The assertion message is misleading, since the passthrough connection can fail for reasons the client has no control over (like other sink inputs being connected).
This commit is contained in:
parent
4fb68b91ac
commit
a199bfb765
1 changed files with 2 additions and 1 deletions
|
|
@ -302,7 +302,8 @@ int pa_sink_input_new(
|
|||
pa_return_val_if_fail(!data->sync_base || (data->sync_base->sink == data->sink && pa_sink_input_get_state(data->sync_base) == PA_SINK_INPUT_CORKED), -PA_ERR_INVALID);
|
||||
|
||||
r = check_passthrough_connection(pa_sink_input_new_data_is_passthrough(data), data->sink);
|
||||
pa_return_val_if_fail(r == PA_OK, r);
|
||||
if (r != PA_OK)
|
||||
return r;
|
||||
|
||||
if (!data->sample_spec_is_set)
|
||||
data->sample_spec = data->sink->sample_spec;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue