From 45b8d29a4f2778aaa305bfe93c3486abb2b4cbdb Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 17 Jul 2013 10:53:51 -0700 Subject: [PATCH] Check for interval_ms. --- configure.ac | 4 ++++ src/protocols/rdp/guac_rdpsnd/rdpsnd_service.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index db3c35a9..f00290ba 100644 --- a/configure.ac +++ b/configure.ac @@ -244,6 +244,10 @@ AC_CHECK_LIB([freerdp-codec], [freerdp_image_convert], [RDP_LIBS="$RDP_LIBS -lfreerdp-codec"], [have_freerdp=no]) +# FreeRDP-specific structure members +AC_CHECK_MEMBERS([rdpSvcPlugin.interval_ms], + [[#include ]]) + # FreeRDP-specific headers AC_CHECK_HEADERS([freerdp/locale/keyboard.h]) diff --git a/src/protocols/rdp/guac_rdpsnd/rdpsnd_service.c b/src/protocols/rdp/guac_rdpsnd/rdpsnd_service.c index 0d765f16..6d41fe58 100644 --- a/src/protocols/rdp/guac_rdpsnd/rdpsnd_service.c +++ b/src/protocols/rdp/guac_rdpsnd/rdpsnd_service.c @@ -92,8 +92,10 @@ void guac_rdpsnd_process_connect(rdpSvcPlugin* plugin) { audio_stream* audio = (audio_stream*) plugin->channel_entry_points.pExtendedData; +#ifdef RDPSVCPLUGIN_INTERVAL_MS /* Update every 10 ms */ plugin->interval_ms = 10; +#endif /* Log that sound has been loaded */ guac_client_log_info(audio->client, "guacsnd connected.");