[PATCH] allow-passthrough: fix hook return value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Sat, 5 May 2018, at 7:52 PM, Tanu Kaskinen wrote:
> -PA_ERR_NOENTITY is not a valid pa_hook_result_t value.
> ---
>  src/modules/module-allow-passthrough.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/modules/module-allow-passthrough.c b/src/modules/
> module-allow-passthrough.c
> index 16b421d79..a882e78ea 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);
>      }
>  
> -- 

Thanks, looks good.

Cheers,
Arun


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux