[PATCH 3/7] snd_desired_audio_mode: change arguments to bool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



client_can_celt and client_can_opus are true/false values, so use
'bool' type instead of 'int.
---
 server/sound.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/sound.c b/server/sound.c
index ff9a37a..ff78c08 100644
--- a/server/sound.c
+++ b/server/sound.c
@@ -974,7 +974,7 @@ void snd_set_playback_latency(RedClient *client, uint32_t latency)
 }
 
 static int snd_desired_audio_mode(bool playback_compression, int frequency,
-                                  int client_can_celt, int client_can_opus)
+                                  bool client_can_celt, bool client_can_opus)
 {
     if (! playback_compression)
         return SPICE_AUDIO_DATA_MODE_RAW;
-- 
2.9.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]