]> code.delx.au - pulseaudio/commitdiff
module-coreaudio-device: Fix two build warnings
authorDaniel Mack <zonque@gmail.com>
Fri, 22 Apr 2011 02:12:36 +0000 (04:12 +0200)
committerColin Guthrie <colin@mageia.org>
Sat, 23 Apr 2011 17:23:37 +0000 (18:23 +0100)
src/modules/macosx/module-coreaudio-device.c

index 7a1f177121ca79f1a9b1d98cd3ebb02280e666b6..393ce7f821d1e557ff534c8ca8b446501f1ff44b 100644 (file)
@@ -393,7 +393,7 @@ static int ca_device_create_sink(pa_module *m, AudioBuffer *buf, int channel_idx
         size = sizeof(tmp);
         err = AudioObjectGetPropertyData(u->object_id, &property_address, 0, NULL, &size, tmp);
         if (err || !strlen(tmp))
-            snprintf(tmp, sizeof(tmp), "Channel %d", property_address.mElement);
+            snprintf(tmp, sizeof(tmp), "Channel %d", (int) property_address.mElement);
 
         if (i > 0)
             pa_strbuf_puts(strbuf, ", ");
@@ -512,7 +512,7 @@ static int ca_device_create_source(pa_module *m, AudioBuffer *buf, int channel_i
         size = sizeof(tmp);
         err = AudioObjectGetPropertyData(u->object_id, &property_address, 0, NULL, &size, tmp);
         if (err || !strlen(tmp))
-            snprintf(tmp, sizeof(tmp), "Channel %d", property_address.mElement);
+            snprintf(tmp, sizeof(tmp), "Channel %d", (int) property_address.mElement);
 
         if (i > 0)
             pa_strbuf_puts(strbuf, ", ");