From 0f58eb33f7d3e9d3e855011c4c6db67aa684a5ed Mon Sep 17 00:00:00 2001 From: Sangchul Lee Date: Mon, 4 Jun 2018 13:12:25 +0900 Subject: [PATCH] sink: Keep original value of avoid-resampling option This option value is set initially from daemon.conf or modules. Since we will manipulate this option dynamically, it is needed to store the original value which will be used later on. e.g.) a failure of the processing [Version] 11.1-40 [Issue Type] Enhacement Change-Id: I6d6a141696b41002c4490dbf33416bd299832203 Signed-off-by: Sangchul Lee --- packaging/pulseaudio.spec | 2 +- src/pulsecore/sink.c | 1 + src/pulsecore/sink.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/pulseaudio.spec b/packaging/pulseaudio.spec index 7444082..e784b2a 100644 --- a/packaging/pulseaudio.spec +++ b/packaging/pulseaudio.spec @@ -3,7 +3,7 @@ Name: pulseaudio Summary: Improved Linux sound server Version: 11.1 -Release: 39 +Release: 40 Group: Multimedia/Audio License: LGPL-2.1 URL: http://pulseaudio.org diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index 5d3445b..ae71125 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -338,6 +338,7 @@ pa_sink* pa_sink_new( s->alternate_sample_rate = s->core->alternate_sample_rate; #ifdef __TIZEN__ s->avoid_resampling = data->avoid_resampling; + s->origin_avoid_resampling = data->avoid_resampling; s->selected_sample_rate = s->default_sample_rate; #endif diff --git a/src/pulsecore/sink.h b/src/pulsecore/sink.h index 0bd9a2c..800b7d0 100644 --- a/src/pulsecore/sink.h +++ b/src/pulsecore/sink.h @@ -87,6 +87,7 @@ struct pa_sink { bool avoid_resampling:1; uint32_t *supported_sample_rates; uint32_t selected_sample_rate; + bool origin_avoid_resampling; #endif pa_idxset *inputs; -- 2.7.4