From ca5e0e5837e7661d95ff050f843a5e9659231f8e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 8 Mar 2022 17:44:54 +0100 Subject: [PATCH] audioconvert: don't fixate rate We alwats want to adapt to the rate of the graph and not the samplerate that was configured with the PortConfig. This fixes samplerate switching again. --- spa/plugins/audioconvert/audioadapter.c | 1 - 1 file changed, 1 deletion(-) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index 1c0d047ee..157061d62 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -542,7 +542,6 @@ static int format_audio_raw_parse_opt(const struct spa_pod *format, struct spa_a res = spa_pod_parse_object(format, SPA_TYPE_OBJECT_Format, NULL, SPA_FORMAT_AUDIO_format, SPA_POD_OPT_Id(&info->format), - SPA_FORMAT_AUDIO_rate, SPA_POD_OPT_Int(&info->rate), SPA_FORMAT_AUDIO_channels, SPA_POD_OPT_Int(&info->channels), SPA_FORMAT_AUDIO_position, SPA_POD_OPT_Pod(&position)); if (position == NULL ||