From 426ebbae5ff578923a83a4395ff499f0348f7dcc Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 17:43:25 +0100 Subject: video/filter: mp_msg conversions --- video/filter/vf_lavfi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'video/filter/vf_lavfi.c') diff --git a/video/filter/vf_lavfi.c b/video/filter/vf_lavfi.c index 03602aa702..c5d237c01d 100644 --- a/video/filter/vf_lavfi.c +++ b/video/filter/vf_lavfi.c @@ -130,19 +130,19 @@ static bool recreate_graph(struct vf_instance *vf, int width, int height, vf->priv->lw_recreate_cb(vf); if (bstr0(p->cfg_graph).len == 0) { - mp_msg(MSGT_VFILTER, MSGL_FATAL, "lavfi: no filter graph set\n"); + MP_FATAL(vf, "lavfi: no filter graph set\n"); return false; } destroy_graph(vf); - mp_msg(MSGT_VFILTER, MSGL_V, "lavfi: create graph: '%s'\n", p->cfg_graph); + MP_VERBOSE(vf, "lavfi: create graph: '%s'\n", p->cfg_graph); AVFilterGraph *graph = avfilter_graph_alloc(); if (!graph) goto error; if (parse_avopts(graph, p->cfg_avopts) < 0) { - mp_msg(MSGT_VFILTER, MSGL_FATAL, "lavfi: could not set opts: '%s'\n", + MP_FATAL(vf, "lavfi: could not set opts: '%s'\n", p->cfg_avopts); goto error; } @@ -214,7 +214,7 @@ static bool recreate_graph(struct vf_instance *vf, int width, int height, return true; error: - mp_msg(MSGT_VFILTER, MSGL_FATAL, "Can't configure libavfilter graph.\n"); + MP_FATAL(vf, "Can't configure libavfilter graph.\n"); avfilter_graph_free(&graph); talloc_free(tmp); return false; @@ -444,7 +444,7 @@ int vf_lw_set_graph(struct vf_instance *vf, struct vf_lw_opts *lavfi_opts, lavfi_opts = (struct vf_lw_opts *)vf_lw_conf.defaults; if (!lavfi_opts->enable || !have_filter(filter)) return -1; - mp_msg(MSGT_VFILTER, MSGL_V, "Using libavfilter for '%s'\n", vf->info->name); + MP_VERBOSE(vf, "Using libavfilter for '%s'\n", vf->info->name); void *old_priv = vf->priv; struct vf_priv_s *p = talloc(vf, struct vf_priv_s); vf->priv = p; -- cgit v1.2.3