Blame patches/rdesktop-1.8.3.local.patch

Lucio Andrés Illanes Albornoz 8255df
diff -ru rdesktop-1.8.3.orig/rdpsnd_alsa.c rdesktop-1.8.3/rdpsnd_alsa.c
Lucio Andrés Illanes Albornoz 8255df
--- rdesktop-1.8.3.orig/rdpsnd_alsa.c	2015-08-21 08:24:23.000000000 +0200
Lucio Andrés Illanes Albornoz 8255df
+++ rdesktop-1.8.3/rdpsnd_alsa.c	2018-11-01 20:53:55.216422142 +0100
Lucio Andrés Illanes Albornoz 8255df
@@ -218,7 +218,7 @@
Lucio Andrés Illanes Albornoz 8255df
 #endif
Lucio Andrés Illanes Albornoz 8255df
 
Lucio Andrés Illanes Albornoz 8255df
 	rate = pwfx->nSamplesPerSec;
Lucio Andrés Illanes Albornoz 8255df
-	if ((err = snd_pcm_hw_params_set_rate_near(pcm, hwparams, &rate, 0)) < 0)
Lucio Andrés Illanes Albornoz 8255df
+	if ((err = __snd_pcm_hw_params_set_rate_near(pcm, hwparams, &rate, 0)) < 0)
Lucio Andrés Illanes Albornoz 8255df
 	{
Lucio Andrés Illanes Albornoz 8255df
 		error("snd_pcm_hw_params_set_rate_near: %s\n", snd_strerror(err));
Lucio Andrés Illanes Albornoz 8255df
 		return False;
Lucio Andrés Illanes Albornoz 8255df
@@ -233,7 +233,7 @@
Lucio Andrés Illanes Albornoz 8255df
 
Lucio Andrés Illanes Albornoz 8255df
 
Lucio Andrés Illanes Albornoz 8255df
 	buffertime = 500000;	/* microseconds */
Lucio Andrés Illanes Albornoz 8255df
-	if ((err = snd_pcm_hw_params_set_buffer_time_near(pcm, hwparams, &buffertime, 0)) < 0)
Lucio Andrés Illanes Albornoz 8255df
+	if ((err = __snd_pcm_hw_params_set_buffer_time_near(pcm, hwparams, &buffertime, 0)) < 0)
Lucio Andrés Illanes Albornoz 8255df
 	{
Lucio Andrés Illanes Albornoz 8255df
 		error("snd_pcm_hw_params_set_buffer_time_near: %s\n", snd_strerror(err));
Lucio Andrés Illanes Albornoz 8255df
 		return False;