diff options
author | Tanu Kaskinen <tanuk@iki.fi> | 2018-05-05 17:22:46 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2018-05-07 16:53:57 +0300 |
commit | efba6e3b302e2bf8a043a6127bba030cb733d392 (patch) | |
tree | e0434ba0a33dfe11a0753f212c989e2be2c2f880 | |
parent | f9f9877d18b1553ad4a1fdaa69e634061e3fea05 (diff) | |
download | pulseaudio-efba6e3b302e2bf8a043a6127bba030cb733d392.tar.gz |
allow-passthrough: fix hook return value
-PA_ERR_NOENTITY is not a valid pa_hook_result_t value.
-rw-r--r-- | src/modules/module-allow-passthrough.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-allow-passthrough.c b/src/modules/module-allow-passthrough.c index f7c61559b..7fbef09ea 100644 --- a/src/modules/module-allow-passthrough.c +++ b/src/modules/module-allow-passthrough.c @@ -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); } |