summaryrefslogtreecommitdiffstats
path: root/audio/filter/af_surround.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-21 23:15:32 +0100
committerwm4 <wm4@nowhere>2013-12-21 23:15:32 +0100
commit0a3e9a9ac3a90da831b497e0613dfb66bc14f3d2 (patch)
treeb70f214f8c3fc802d6d6edbf8395273c854ac0fd /audio/filter/af_surround.c
parenta4fe95b0d8d339ba5afbdb5346ad8fd367a4a1c1 (diff)
parent245e5b844177e9ad9a9c07eff5efab7c3fccdebc (diff)
downloadmpv-0a3e9a9ac3a90da831b497e0613dfb66bc14f3d2.tar.bz2
mpv-0a3e9a9ac3a90da831b497e0613dfb66bc14f3d2.tar.xz
Merge branch 'msg_refactor'
This branch changes mp_msg() so that it doesn't require global context. The changes are pretty violent.
Diffstat (limited to 'audio/filter/af_surround.c')
-rw-r--r--audio/filter/af_surround.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/audio/filter/af_surround.c b/audio/filter/af_surround.c
index 69ea015e31..daa1f25ef1 100644
--- a/audio/filter/af_surround.c
+++ b/audio/filter/af_surround.c
@@ -94,7 +94,7 @@ static int control(struct af_instance* af, int cmd, void* arg)
struct mp_audio *in = arg;
float fc;
if (!mp_chmap_is_stereo(&in->channels)) {
- mp_msg(MSGT_AFILTER, MSGL_ERR, "[surround] Only stereo input is supported.\n");
+ MP_ERR(af, "[surround] Only stereo input is supported.\n");
return AF_DETACH;
}
@@ -105,7 +105,7 @@ static int control(struct af_instance* af, int cmd, void* arg)
// Surround filer coefficients
fc = 2.0 * 7000.0/(float)af->data->rate;
if (-1 == af_filter_design_fir(L, s->w, &fc, LP|HAMMING, 0)){
- mp_msg(MSGT_AFILTER, MSGL_ERR, "[surround] Unable to design low-pass filter.\n");
+ MP_ERR(af, "[surround] Unable to design low-pass filter.\n");
return AF_ERROR;
}
@@ -116,7 +116,7 @@ static int control(struct af_instance* af, int cmd, void* arg)
s->dl = calloc(LD,af->data->bps);
s->dr = calloc(LD,af->data->bps);
if((NULL == s->dl) || (NULL == s->dr))
- mp_msg(MSGT_AFILTER, MSGL_FATAL, "[delay] Out of memory\n");
+ MP_FATAL(af, "[delay] Out of memory\n");
// Initialize delay queue index
if(AF_OK != af_from_ms(1, &s->d, &s->wi, af->data->rate, 0.0, 1000.0))