From be6410909f1255b21283c638b95823451235a886 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 1 Feb 2021 15:16:04 +0100 Subject: [PATCH] audioadapter: remove some unused code --- spa/plugins/audioconvert/audioadapter.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index b5fcb3448..6d020cb31 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -458,15 +458,11 @@ static int negotiate_format(struct impl *this) spa_log_debug(this->log, NAME " %p: negiotiate", this); - state = 0; - format = NULL; - spa_node_send_command(this->follower, &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_ParamBegin)); - if (this->have_format) - format = spa_format_audio_raw_build(&b, SPA_PARAM_Format, &this->follower_current_format.info.raw); - + state = 0; + format = NULL; if ((res = spa_node_port_enum_params_sync(this->follower, this->direction, 0, SPA_PARAM_EnumFormat, &state,