mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
allow-passthrough: fix hook return value
-PA_ERR_NOENTITY is not a valid pa_hook_result_t value.
This commit is contained in:
parent
f9f9877d18
commit
efba6e3b30
1 changed files with 1 additions and 1 deletions
|
|
@ -177,7 +177,7 @@ static pa_hook_result_t sink_input_new_cb(pa_core *core, pa_sink_input_new_data
|
|||
* format). */
|
||||
if (!new_data->sink) {
|
||||
pa_sink *sink = pa_namereg_get(core, NULL, PA_NAMEREG_SINK);
|
||||
pa_return_val_if_fail(sink, -PA_ERR_NOENTITY);
|
||||
pa_return_val_if_fail(sink, PA_HOOK_OK);
|
||||
pa_sink_input_new_data_set_sink(new_data, sink, false, false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue