[pulseaudio-discuss] [PATCH] match: Use the SINK_INPUT_FIXATE hook instead of NEW.
Arun Raghavan
arun.raghavan at collabora.co.uk
Mon Oct 29 07:27:28 PDT 2012
On Thu, 2012-09-27 at 16:41 +0300, Tanu Kaskinen wrote:
> The callback relies on the sample spec being finalized, which is not
> true with the NEW hook.
>
> BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=55135
> ---
> src/modules/module-match.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/modules/module-match.c b/src/modules/module-match.c
> index c94ef79..9f76b5d 100644
> --- a/src/modules/module-match.c
> +++ b/src/modules/module-match.c
> @@ -264,7 +264,7 @@ int pa__init(pa_module*m) {
> goto fail;
>
> /* hook EARLY - 1, to match before stream-restore */
Given this comment, does this change break things with respect to m-s-r?
> - u->sink_input_new_hook_slot = pa_hook_connect(&m->core->hooks[PA_CORE_HOOK_SINK_INPUT_NEW], PA_HOOK_EARLY - 1, (pa_hook_cb_t) sink_input_new_hook_callback, u);
> + u->sink_input_new_hook_slot = pa_hook_connect(&m->core->hooks[PA_CORE_HOOK_SINK_INPUT_FIXATE], PA_HOOK_EARLY - 1, (pa_hook_cb_t) sink_input_new_hook_callback, u);
Also, probably want to change the hook variable and function names with
s/new/fixate.
-- Arun
More information about the pulseaudio-discuss
mailing list