From edd36a3afce4ca3778461e61df64f6a79ba94079 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 22 Aug 2013 23:12:35 +0200 Subject: audio/out: do some mp_msg conversions Use the new MP_ macros for some AOs instead of mp_msg. Not all AOs are converted, and some only partially. In some cases, some additional cosmetic changes are made. --- audio/out/ao_openal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'audio/out/ao_openal.c') diff --git a/audio/out/ao_openal.c b/audio/out/ao_openal.c index 1f9115a471..599672658d 100644 --- a/audio/out/ao_openal.c +++ b/audio/out/ao_openal.c @@ -127,7 +127,7 @@ static int init(struct ao *ao) int i; struct priv *p = ao->priv; if (ao_data) { - mp_msg(MSGT_AO, MSGL_FATAL, "[OpenAL] Not reentrant!\n"); + MP_FATAL(ao, "Not reentrant!\n"); return -1; } ao_data = ao; @@ -145,13 +145,13 @@ static int init(struct ao *ao) speakers[i] = speaker_pos[n]; } if (speakers[i].id < 0) { - mp_msg(MSGT_AO, MSGL_FATAL, "[OpenAL] Unknown channel layout\n"); + MP_FATAL(ao, "Unknown channel layout\n"); goto err_out; } } dev = alcOpenDevice(p->cfg_device && p->cfg_device[0] ? p->cfg_device : NULL); if (!dev) { - mp_msg(MSGT_AO, MSGL_FATAL, "[OpenAL] could not open device\n"); + MP_FATAL(ao, "could not open device\n"); goto err_out; } ctx = alcCreateContext(dev, attribs); -- cgit v1.2.3