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

This commit is contained in:
akallabeth
2021-10-11 15:45:36 +02:00
committed by GitHub
parent 74d7b4c9b7
commit 834fdf0046

View File

@@ -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);