From 6e44b1224005f9dd7259b1879d7c6a24ba544273 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 26 Jun 2013 08:28:19 +0200 Subject: [PATCH] ao_coreaudio: ca_msg: add trailing \n where missing --- audio/out/ao_coreaudio.c | 10 +++++----- audio/out/ao_coreaudio_common.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c index 776a7caf82..b03c80119a 100644 --- a/audio/out/ao_coreaudio.c +++ b/audio/out/ao_coreaudio.c @@ -445,7 +445,7 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd) (void **)&streams); if (!size) { - ca_msg(MSGL_WARN, "could not get number of streams."); + ca_msg(MSGL_WARN, "could not get number of streams\n"); goto coreaudio_error; } @@ -463,7 +463,7 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd) (void **)&formats); if (!size) { - ca_msg(MSGL_WARN, "could not get number of stream formats.\n"); + ca_msg(MSGL_WARN, "could not get number of stream formats\n"); continue; // try next one } @@ -503,7 +503,7 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd) free(streams); if (d->i_stream_index < 0) { - ca_msg(MSGL_WARN, "can't find any digital output stream format"); + ca_msg(MSGL_WARN, "can't find any digital output stream format\n"); goto coreaudio_error; } @@ -533,7 +533,7 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd) ao->format = AF_FORMAT_AC3_LE; else if (d->stream_format.mFormatFlags & kAudioFormatFlagIsBigEndian) ca_msg(MSGL_WARN, - "Stream has non-native byte order, digital output may fail"); + "stream has non-native byte order, digital output may fail\n"); #endif ao->samplerate = d->stream_format.mSampleRate; @@ -574,7 +574,7 @@ static int play(struct ao *ao, void *output_samples, int num_bytes, int flags) if (!AudioStreamChangeFormat(d->i_stream_id, d->stream_format)) { ca_msg(MSGL_WARN, "can't restore digital output\n"); } else { - ca_msg(MSGL_WARN, "Restoring digital output succeeded.\n"); + ca_msg(MSGL_WARN, "restoring digital output succeeded.\n"); reset(ao); } } diff --git a/audio/out/ao_coreaudio_common.c b/audio/out/ao_coreaudio_common.c index 15281fea01..6f35733c63 100644 --- a/audio/out/ao_coreaudio_common.c +++ b/audio/out/ao_coreaudio_common.c @@ -286,7 +286,7 @@ static OSStatus ca_property_listener(AudioObjectPropertySelector selector, for (int i = 0; i < n_addresses; ++i) { if (addresses[i].mSelector == selector) { - ca_msg(MSGL_WARN, "event: property %s changed", + ca_msg(MSGL_WARN, "event: property %s changed\n", fourcc_repr(talloc_ctx, selector)); if (data) *(volatile int *)data = 1; break;