xrdp-next/xrdp-0.9.22.1-no-c99.patch
2023-05-23 12:39:28 +10:00

17 lines
826 B
Diff

diff -rup xrdp-0.9.22.1-v/sesman/chansrv/sound.c xrdp-0.9.22.1/sesman/chansrv/sound.c
--- xrdp-0.9.22.1-v/sesman/chansrv/sound.c 2023-05-23 10:18:50.000000000 +1000
+++ xrdp-0.9.22.1/sesman/chansrv/sound.c 2023-05-23 12:35:50.273215167 +1000
@@ -1116,9 +1116,11 @@ process_pcm_message(int id, int size, st
char *buf = (char *) g_malloc(g_bbuf_size, 0);
if (buf != NULL)
{
+ int i;
+
silence_start_time = g_time3();
sending_silence = 1;
- for (int i = 0; i < send_silence_times; i++)
+ for (i = 0; i < send_silence_times; i++)
{
g_memset(buf, 0, g_bbuf_size);
sound_send_wave_data_chunk(buf, g_bbuf_size);