summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pulsecore/sink-input.c2
-rw-r--r--src/pulsecore/sink-input.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c
index ff5213e1..21050d22 100644
--- a/src/pulsecore/sink-input.c
+++ b/src/pulsecore/sink-input.c
@@ -532,7 +532,7 @@ int pa_sink_input_move_to(pa_sink_input *i, pa_sink *dest, int immediately) {
/* Try to reuse the old resampler if possible */
new_resampler = i->resampler;
- else if (i->variable_rate ||
+ else if ((i->flags & PA_SINK_INPUT_VARIABLE_RATE) ||
!pa_sample_spec_equal(&i->sample_spec, &dest->sample_spec) ||
!pa_channel_map_equal(&i->channel_map, &dest->channel_map)) {
diff --git a/src/pulsecore/sink-input.h b/src/pulsecore/sink-input.h
index 243978fe..da0c2662 100644
--- a/src/pulsecore/sink-input.h
+++ b/src/pulsecore/sink-input.h
@@ -79,7 +79,6 @@ struct pa_sink_input {
pa_memchunk resampled_chunk;
pa_resampler *resampler; /* may be NULL */
- int variable_rate;
pa_resample_method_t resample_method;
pa_memblock *silence_memblock; /* may be NULL */