diff options
author | wm4 <wm4@nowhere> | 2013-12-21 18:23:59 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-21 20:50:12 +0100 |
commit | 1974c9b49d7bf09469362ef6ba1214f625ecb40a (patch) | |
tree | d670f2a12652f2f98531905e388f1290ebbee126 /audio/filter/af_surround.c | |
parent | 4abe6b862f07d4d2dfa75791c9fdd97ccbc8aeaa (diff) | |
download | mpv-1974c9b49d7bf09469362ef6ba1214f625ecb40a.tar.bz2 mpv-1974c9b49d7bf09469362ef6ba1214f625ecb40a.tar.xz |
audio: mp_msg conversions
Diffstat (limited to 'audio/filter/af_surround.c')
-rw-r--r-- | audio/filter/af_surround.c | 6 |
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)) |