]> code.delx.au - pulseaudio/commit
match: Use the SINK_INPUT_FIXATE hook instead of NEW.
authorTanu Kaskinen <tanuk@iki.fi>
Thu, 27 Sep 2012 13:41:59 +0000 (16:41 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Tue, 30 Oct 2012 14:32:34 +0000 (16:32 +0200)
commit0a8634f03e64a84f594bc8533235998e969eda66
treea1034c87c0b19d358be938bd9c53b36a60fd3eb5
parent0da87df4ec0e568a54f4560814e31dfdec4c5b50
match: Use the SINK_INPUT_FIXATE hook instead of NEW.

The callback relies on the sample spec being finalized, which is not
true with the NEW hook.

In case you're wondering about the "hook EARLY - 1, to match before
stream-restore" comment that was not changed even though the code that
the comment concerned was changed: the comment was apparently written
at a time when module-stream-restore used the NEW hook too, and later
stream-restore has been changed to use the FIXATE hook. So, the
comment was wrong/nonsensical before this patch. Since these two
modules now use the same hook again, the comment makes sense again.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=55135
src/modules/module-match.c