stream: Check sample spec validity before abiding PULSE_LATENCY_MSEC
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 10 Jun 2015 15:29:54 +0000 (17:29 +0200)
committerArun Raghavan <git@arunraghavan.net>
Fri, 12 Jun 2015 07:13:14 +0000 (12:43 +0530)
commita1c4a6916f74306fb1ddc9c1d5a77a57e4e30a6f
tree1116534c15351d3c4dc1afbb2d65e2df589a23d8
parentcbc0d5ffcbc32a193205bdfc14fc0a476d30c3d1
stream: Check sample spec validity before abiding PULSE_LATENCY_MSEC

In case the sample spec is not known, as can be the case when
pa_stream_new_extended is used, we cannot satisfy the PULSE_LATENCY_MSEC
request.

As a workaround disable being able to use PULSE_LATENCY_MSEC in this case.

Reported-by: Fritsch <fritsch@xbmc.org>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/pulse/stream.c