[audin] Always reset dsp_context before open (#7342)

(cherry picked from commit 834fdf0046)
This commit is contained in:
akallabeth 2021-10-11 15:45:36 +02:00
parent aa3631db0a
commit 1c1dd91560

View File

@ -444,11 +444,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))
return FALSE;
}
if (!freerdp_dsp_context_reset(audin->dsp_context, audin->format))
return FALSE;
IFCALLRET(audin->device->Open, error, audin->device, audin_receive_wave_data, callback);