[pulseaudio-discuss] [PATCH] match: Use the SINK_INPUT_FIXATE hook instead of NEW.
Tanu Kaskinen
tanuk at iki.fi
Thu Sep 27 06:41:59 PDT 2012
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
More information about the pulseaudio-discuss
mailing list