core: Factor out passthrough checks into their own functions
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Wed, 16 Mar 2011 10:38:23 +0000 (16:08 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 2 May 2011 06:25:39 +0000 (11:55 +0530)
commit4fb68b91acef3cb37c014814d9e9de8ca9f22bf4
tree6973ed69b167c3461d7e07cfaa50054a0455ac53
parent9a39a3df10c3874bf0b5b091f721a6d8ab8750a5
core: Factor out passthrough checks into their own functions

Since we currently have two mechanisms to signal a passthrough
connection (non-PCM format or PA_SINK_INPUT_PASSTHROUGH flag), we move
all the related checks into functions and use those everywhere.

This makes things more consistent, and should we decide to get rid of
the flag, we only need to change pa_sink_input_*_is_passthrough()
accordingly.
src/modules/alsa/alsa-sink.c
src/pulsecore/sink-input.c
src/pulsecore/sink-input.h
src/pulsecore/sink.c