mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[audin] Always reset dsp_context before open (#7342)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user