diff options
author | Daniel Mack <zonque@gmail.com> | 2011-04-22 04:12:36 +0200 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-04-23 18:23:37 +0100 |
commit | ff273b49d7200c4ed20a533816fe534430bfa0a4 (patch) | |
tree | 446b4b84dab6a2867c8825b6e7a985b2fd289ca1 /src | |
parent | e6003e8fc54ce21fe6648ffdf8c7e6bdda9e3f12 (diff) |
module-coreaudio-device: Fix two build warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/macosx/module-coreaudio-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/macosx/module-coreaudio-device.c b/src/modules/macosx/module-coreaudio-device.c index 7a1f1771..393ce7f8 100644 --- a/src/modules/macosx/module-coreaudio-device.c +++ b/src/modules/macosx/module-coreaudio-device.c @@ -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, ", "); |