Automatically load advanced input channel

This commit is contained in:
Armin Novak 2022-01-17 14:21:17 +01:00 committed by akallabeth
parent cdbfff87ea
commit b85333bb9e

View File

@ -46,6 +46,10 @@
#include <freerdp/channels/urbdrc.h>
#include <freerdp/channels/rdpdr.h>
#if defined(CHANNEL_AINPUT_CLIENT)
#include <freerdp/channels/ainput.h>
#endif
#include <freerdp/client/cmdline.h>
#include <freerdp/version.h>
@ -3541,6 +3545,16 @@ BOOL freerdp_client_load_addins(rdpChannels* channels, rdpSettings* settings)
{
UINT32 index;
/* Always load FreeRDP advanced input dynamic channel */
#if defined(CHANNEL_AINPUT_CLIENT)
{
const char* p[] = { AINPUT_CHANNEL_NAME };
if (!freerdp_client_add_dynamic_channel(settings, ARRAYSIZE(p), p))
return FALSE;
}
#endif
if (settings->AudioPlayback)
{
const char* p[] = { RDPSND_CHANNEL_NAME };