From aee95e76bb7a312c1d79594e29dc7d863f57fdea Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 30 Jul 2020 18:22:03 +0200 Subject: pulse: use the right sample spec --- pipewire-pulseaudio/src/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pipewire-pulseaudio') diff --git a/pipewire-pulseaudio/src/stream.c b/pipewire-pulseaudio/src/stream.c index 85125bec..62fa1679 100644 --- a/pipewire-pulseaudio/src/stream.c +++ b/pipewire-pulseaudio/src/stream.c @@ -196,7 +196,7 @@ static void patch_buffer_attr(pa_stream *s, pa_buffer_attr *attr, pa_stream_flag if ((ms = atoi(e)) == 0) { pa_log_debug("Failed to parse $PULSE_LATENCY_MSEC: %s", e); } - else if (!pa_sample_spec_valid(&s->sample_spec)) { + else if (!pa_sample_spec_valid(&ss)) { pa_log_debug("Ignoring $PULSE_LATENCY_MSEC: %s (invalid sample spec)", e); } else { -- cgit v1.2.3