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 */ - 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); pa_modargs_free(ma); return 0; -- 1.7.10.4