diff --git a/src/daemon/ohos_pa_main.c b/src/daemon/ohos_pa_main.c index c437e475a1bb8904f872bca46f7f32a40300cd4d..110be4c65365e232bb8b59aa2ebe51b52215eb8b 100644 --- a/src/daemon/ohos_pa_main.c +++ b/src/daemon/ohos_pa_main.c @@ -642,7 +642,6 @@ int ohos_pa_main(int argc, char *argv[]) { pa_close_allv(passed_fds); pa_xfree(passed_fds); #endif - pa_reset_priority(); /* Load locale from the environment. */ setlocale(LC_ALL, ""); diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c index 4c51cfc1dee4d8eef509699ba94818372679b0fe..c5fa55cdd308b6b7948461ae638b565ed739a217 100644 --- a/src/pulsecore/resampler.c +++ b/src/pulsecore/resampler.c @@ -208,6 +208,11 @@ static pa_resample_method_t fix_method( break; } + if (method != PA_RESAMPLER_AUTO) { + AUDIO_INFO_LOG("resampler method is not auto, reset to auto!"); + method = PA_RESAMPLER_AUTO; + } + if (method == PA_RESAMPLER_AUTO) method = choose_auto_resampler(flags, rate_a, rate_b);