summaryrefslogtreecommitdiff
path: root/pipewire-pulseaudio
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-07-30 18:22:03 +0200
committerWim Taymans <wtaymans@redhat.com>2020-07-30 18:22:03 +0200
commitaee95e76bb7a312c1d79594e29dc7d863f57fdea (patch)
tree76cf22c06f63eacbde8689dc7bd86515bf6c5b63 /pipewire-pulseaudio
parentc7d7dd91f89ac3fe7992d1d053b8e20c78266723 (diff)
pulse: use the right sample spec
Diffstat (limited to 'pipewire-pulseaudio')
-rw-r--r--pipewire-pulseaudio/src/stream.c2
1 files changed, 1 insertions, 1 deletions
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 {