From 1974c9b49d7bf09469362ef6ba1214f625ecb40a Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 18:23:59 +0100 Subject: audio: mp_msg conversions --- audio/filter/af_lavrresample.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'audio/filter/af_lavrresample.c') diff --git a/audio/filter/af_lavrresample.c b/audio/filter/af_lavrresample.c index ee453cc1de..4bd95459c0 100644 --- a/audio/filter/af_lavrresample.c +++ b/audio/filter/af_lavrresample.c @@ -168,8 +168,7 @@ static int configure_lavrr(struct af_instance *af, struct mp_audio *in, av_opt_set_double(s->avrctx, "cutoff", s->ctx.cutoff, 0); if (parse_avopts(s->avrctx, s->avopts) < 0) { - mp_msg(MSGT_VFILTER, MSGL_FATAL, - "af_lavrresample: could not set opts: '%s'\n", s->avopts); + MP_FATAL(af, "af_lavrresample: could not set opts: '%s'\n", s->avopts); return AF_ERROR; } @@ -222,7 +221,7 @@ static int configure_lavrr(struct af_instance *af, struct mp_audio *in, if (avresample_open(s->avrctx) < 0 || avresample_open(s->avrctx_out) < 0) { - mp_msg(MSGT_AFILTER, MSGL_ERR, "[lavrresample] Cannot open " + MP_ERR(af, "[lavrresample] Cannot open " "Libavresample Context. \n"); return AF_ERROR; } @@ -398,7 +397,7 @@ static int af_open(struct af_instance *af) if (s->avrctx && s->avrctx_out) { return AF_OK; } else { - mp_msg(MSGT_AFILTER, MSGL_ERR, "[lavrresample] Cannot initialize " + MP_ERR(af, "[lavrresample] Cannot initialize " "Libavresample Context. \n"); uninit(af); return AF_ERROR; -- cgit v1.2.3