pulsesink: Cache the getcaps/acceptcaps probe stream
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Sun, 26 May 2013 02:48:04 +0000 (08:18 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 10 Jun 2013 07:35:43 +0000 (13:05 +0530)
commitc7e65777e104c3f8aaacee9eb46a1080f05deb83
treee4f0d14491f5d86af199bee3a5e3600aa70546ad
parent14e784f9fc629af4c33b41dae159aa5060fb8f5f
pulsesink: Cache the getcaps/acceptcaps probe stream

getcaps is called frequently during stream setup, and creating a new
stream each time is very inefficient. There's some more room for
optimisation by caching the queried sink formats as well, but this needs
some more changes to listen for format changes on the sink (for when
supported formats change between probe stream creation and sink
querying).

https://bugzilla.gnome.org/show_bug.cgi?id=686459
ext/pulse/pulsesink.c