0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

coreaudio: fix prints of uint32_t in log_layout

This commit is contained in:
Stefano Pigozzi 2014-12-04 21:33:38 +01:00
parent 7aa91af8a7
commit 4db97d3303

View File

@ -354,19 +354,19 @@ static void ca_log_layout(struct ao *ao, AudioChannelLayout *layout)
AudioChannelDescription *descs = layout->mChannelDescriptions; AudioChannelDescription *descs = layout->mChannelDescriptions;
MP_VERBOSE(ao, "layout: tag: <%d>, bitmap: <%d>, " MP_VERBOSE(ao, "layout: tag: <%u>, bitmap: <%u>, "
"descriptions <%d>\n", "descriptions <%u>\n",
layout->mChannelLayoutTag, (unsigned) layout->mChannelLayoutTag,
layout->mChannelBitmap, (unsigned) layout->mChannelBitmap,
layout->mNumberChannelDescriptions); (unsigned) layout->mNumberChannelDescriptions);
for (int i = 0; i < layout->mNumberChannelDescriptions; i++) { for (int i = 0; i < layout->mNumberChannelDescriptions; i++) {
AudioChannelDescription d = descs[i]; AudioChannelDescription d = descs[i];
MP_VERBOSE(ao, " - description %d: label <%d, %d>, flags: <%u>, " MP_VERBOSE(ao, " - description %d: label <%u, %u>, "
"coords: <%f, %f, %f>\n", i, " flags: <%u>, coords: <%f, %f, %f>\n", i,
d.mChannelLabel, (unsigned) d.mChannelLabel,
ca_label_to_mp_speaker_id(d.mChannelLabel), (unsigned) ca_label_to_mp_speaker_id(d.mChannelLabel),
d.mChannelFlags, (unsigned) d.mChannelFlags,
d.mCoordinates[0], d.mCoordinates[0],
d.mCoordinates[1], d.mCoordinates[1],
d.mCoordinates[2]); d.mCoordinates[2]);