summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_openal.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-22 23:12:35 +0200
committerwm4 <wm4@nowhere>2013-08-22 23:12:35 +0200
commitedd36a3afce4ca3778461e61df64f6a79ba94079 (patch)
treea7916172632fea425b9c3a58e673573203850266 /audio/out/ao_openal.c
parentcb54c2dda8be8a79e8bc6c658b4815c55bdfc14e (diff)
downloadmpv-edd36a3afce4ca3778461e61df64f6a79ba94079.tar.bz2
mpv-edd36a3afce4ca3778461e61df64f6a79ba94079.tar.xz
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.
Diffstat (limited to 'audio/out/ao_openal.c')
-rw-r--r--audio/out/ao_openal.c6
1 files changed, 3 insertions, 3 deletions
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);