summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_lavfi.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-21 17:43:25 +0100
committerwm4 <wm4@nowhere>2013-12-21 20:50:10 +0100
commit426ebbae5ff578923a83a4395ff499f0348f7dcc (patch)
treee0155cf4a0813ca15a0cd6364bcae25c81cf164b /video/filter/vf_lavfi.c
parent877303aaa9111fc56a8e5edbeb439699acfe44c0 (diff)
downloadmpv-426ebbae5ff578923a83a4395ff499f0348f7dcc.tar.bz2
mpv-426ebbae5ff578923a83a4395ff499f0348f7dcc.tar.xz
video/filter: mp_msg conversions
Diffstat (limited to 'video/filter/vf_lavfi.c')
-rw-r--r--video/filter/vf_lavfi.c10
1 files changed, 5 insertions, 5 deletions
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;