From c796787f25aba3c4aea58e28f90c48b05b8c5a87 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 25 Feb 2017 15:07:44 -0800 Subject: [PATCH] GUACAMOLE-218: Reset internal RDPSND audio format counter whenever a new SNDC_FORMATS PDU is received. --- src/protocols/rdp/guac_rdpsnd/rdpsnd_messages.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/protocols/rdp/guac_rdpsnd/rdpsnd_messages.c b/src/protocols/rdp/guac_rdpsnd/rdpsnd_messages.c index 93f4c35b..ba0224c1 100644 --- a/src/protocols/rdp/guac_rdpsnd/rdpsnd_messages.c +++ b/src/protocols/rdp/guac_rdpsnd/rdpsnd_messages.c @@ -58,6 +58,9 @@ void guac_rdpsnd_formats_handler(guac_rdpsndPlugin* rdpsnd, /* Get audio stream from client data */ guac_audio_stream* audio = rdp_client->audio; + /* Reset own format count */ + rdpsnd->format_count = 0; + /* Format header */ Stream_Seek(input_stream, 14); Stream_Read_UINT16(input_stream, server_format_count);