From 834fdf0046d8a76a12a66937ff92293b5ac75d6d Mon Sep 17 00:00:00 2001 From: akallabeth Date: Mon, 11 Oct 2021 15:45:36 +0200 Subject: [PATCH] [audin] Always reset dsp_context before open (#7342) --- channels/audin/client/audin_main.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/channels/audin/client/audin_main.c b/channels/audin/client/audin_main.c index d2d3147f3..1ecd84872 100644 --- a/channels/audin/client/audin_main.c +++ b/channels/audin/client/audin_main.c @@ -450,11 +450,8 @@ static BOOL audin_open_device(AUDIN_PLUGIN* audin, AUDIN_CHANNEL_CALLBACK* callb return FALSE; } - if (!supported) - { - if (!freerdp_dsp_context_reset(audin->dsp_context, audin->format, audin->FramesPerPacket)) - return FALSE; - } + if (!freerdp_dsp_context_reset(audin->dsp_context, audin->format, audin->FramesPerPacket)) + return FALSE; IFCALLRET(audin->device->Open, error, audin->device, audin_receive_wave_data, callback);