Repository: incubator-guacamole-server Updated Branches: refs/heads/master 077cc84d2 -> 2703c5aff
GUACAMOLE-218: Reset internal RDPSND audio format counter whenever a new SNDC_FORMATS PDU is received. Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/commit/c796787f Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/tree/c796787f Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/diff/c796787f Branch: refs/heads/master Commit: c796787f25aba3c4aea58e28f90c48b05b8c5a87 Parents: 077cc84 Author: Michael Jumper <[email protected]> Authored: Sat Feb 25 15:07:44 2017 -0800 Committer: Michael Jumper <[email protected]> Committed: Sat Feb 25 15:08:16 2017 -0800 ---------------------------------------------------------------------- src/protocols/rdp/guac_rdpsnd/rdpsnd_messages.c | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-server/blob/c796787f/src/protocols/rdp/guac_rdpsnd/rdpsnd_messages.c ---------------------------------------------------------------------- diff --git a/src/protocols/rdp/guac_rdpsnd/rdpsnd_messages.c b/src/protocols/rdp/guac_rdpsnd/rdpsnd_messages.c index 93f4c35..ba0224c 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);
