module-allow-passthrough: Don't crash if we can't find a sink
authorArun Raghavan <arun@arunraghavan.net>
Fri, 4 May 2018 16:29:23 +0000 (21:59 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Sun, 6 May 2018 02:34:08 +0000 (08:04 +0530)
commitf9f9877d18b1553ad4a1fdaa69e634061e3fea05
tree58514b44b01d3a167df1c800aff88e94eedadd11
parent66e8ec345336e2b0bd5aa0f4810319b03728ff96
module-allow-passthrough: Don't crash if we can't find a sink

module-allow-passthrough has a (necessary) hack to replicate the default
sink selection and format negotiation from sink-input.c. One thing that
got missed in this replication is the possibility that the sink input is
not compatible with the default sink. When this happen, we now exit
gracefully.
src/modules/module-allow-passthrough.c