summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_lavfi.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-21 20:04:49 +0100
committerwm4 <wm4@nowhere>2013-12-21 21:43:16 +0100
commit7bdee8f35ed0aa19c83377b7c264c51696f9653f (patch)
tree4051e8ed31372cc8410efb55b183aa48a07af682 /video/filter/vf_lavfi.c
parent9242c34fa26aafb09a9973a5175c281233a13bdc (diff)
downloadmpv-7bdee8f35ed0aa19c83377b7c264c51696f9653f.tar.bz2
mpv-7bdee8f35ed0aa19c83377b7c264c51696f9653f.tar.xz
m_option: add mp_log context to sub-module print_help callback
Diffstat (limited to 'video/filter/vf_lavfi.c')
-rw-r--r--video/filter/vf_lavfi.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/video/filter/vf_lavfi.c b/video/filter/vf_lavfi.c
index c5d237c01d..7faf5a5b96 100644
--- a/video/filter/vf_lavfi.c
+++ b/video/filter/vf_lavfi.c
@@ -355,18 +355,16 @@ static bool is_usable(const AVFilter *filter)
is_single_video_only(filter->outputs);
}
-static void print_help(void)
+static void print_help(struct mp_log *log)
{
- mp_msg(MSGT_CFGPARSER, MSGL_INFO, "List of libavfilter filters:\n");
+ mp_info(log, "List of libavfilter filters:\n");
for (const AVFilter *filter = avfilter_next(NULL); filter;
filter = avfilter_next(filter))
{
- if (is_usable(filter)) {
- mp_msg(MSGT_CFGPARSER, MSGL_INFO, " %-16s %s\n",
- filter->name, filter->description);
- }
+ if (is_usable(filter))
+ mp_info(log, " %-16s %s\n", filter->name, filter->description);
}
- mp_msg(MSGT_CFGPARSER, MSGL_INFO, "\n"
+ mp_info(log, "\n"
"This lists video->video filters only. Refer to\n"
"\n"
" https://ffmpeg.org/ffmpeg-filters.html\n"