GUACAMOLE-218: Reset internal RDPSND audio format counter whenever a new SNDC_FORMATS PDU is received.
This commit is contained in:
parent
077cc84d27
commit
c796787f25
@ -58,6 +58,9 @@ void guac_rdpsnd_formats_handler(guac_rdpsndPlugin* rdpsnd,
|
|||||||
/* Get audio stream from client data */
|
/* Get audio stream from client data */
|
||||||
guac_audio_stream* audio = rdp_client->audio;
|
guac_audio_stream* audio = rdp_client->audio;
|
||||||
|
|
||||||
|
/* Reset own format count */
|
||||||
|
rdpsnd->format_count = 0;
|
||||||
|
|
||||||
/* Format header */
|
/* Format header */
|
||||||
Stream_Seek(input_stream, 14);
|
Stream_Seek(input_stream, 14);
|
||||||
Stream_Read_UINT16(input_stream, server_format_count);
|
Stream_Read_UINT16(input_stream, server_format_count);
|
||||||
|
Loading…
Reference in New Issue
Block a user