sink: Make early drain reporting propagate down to filters
authorArun Raghavan <git@arunraghavan.net>
Mon, 16 Nov 2015 14:13:18 +0000 (19:43 +0530)
committerArun Raghavan <git@arunraghavan.net>
Tue, 17 Nov 2015 10:43:25 +0000 (16:13 +0530)
commit5504b26e1e0bff9e51f2ceb4f9e42b33e95a2a67
tree59018f00aec6dd959f969219e34aca750060f930
parent107dfa8e0141d5fb979bebe3606b3fd9e4f65f55
sink: Make early drain reporting propagate down to filters

The drain reporting improvements that were added to alsa-sink were only
being applied to directly connected sink inputs. This patch makes the
same logic also recurse down the filter hierarchy, so drains are
acknowledged more accurately (and not late) even if there is a filter
sink in between.

Also does some minor reorganisation of the code and sprinkles in some
comments as documentation.
src/pulsecore/sink.c