path: root/player/video.c
diff options
authorwm4 <wm4@nowhere>2017-04-02 17:59:45 +0200
committerwm4 <wm4@nowhere>2017-04-02 18:00:16 +0200
commit3a9e661e929c34d25810fa903abbd9961f73ecef (patch)
tree2d559b17bba2402d430c34f6dd7832ea8068885c /player/video.c
parent6b9d3f4f7bcc51c9b0ec6407b5df33106b028285 (diff)
video: deprecate almost all video filters
The plan is to nuke the custom filter chain completely. It's not clear what will happen to the still needed builtin filters (mostly hardware deinterlacing and vf_vapoursynth). Most likely we'll replace them with different filter chain concept (whose main purpose will be providing builtin things and bridging to libavfilter). The undocumented "warn" options are there to disable deprecation warnings when the player inserts filter automatically. The same will be done to audio filters, at a later point.
Diffstat (limited to 'player/video.c')
1 files changed, 4 insertions, 3 deletions
diff --git a/player/video.c b/player/video.c
index ee0e89c93a..eecfea5482 100644
--- a/player/video.c
+++ b/player/video.c
@@ -189,7 +189,8 @@ static int probe_deint_filters(struct vo_chain *vo_c)
if (check_output_format(vo_c, IMGFMT_D3D11VA) ||
check_output_format(vo_c, IMGFMT_D3D11NV12))
return try_filter(vo_c, "d3d11vpp", VF_DEINTERLACE_LABEL, NULL);
- return try_filter(vo_c, "yadif", VF_DEINTERLACE_LABEL, NULL);
+ char *args[] = {"warn", "no", NULL};
+ return try_filter(vo_c, "yadif", VF_DEINTERLACE_LABEL, args);
// Reconfigure the filter chain according to the new input format.
@@ -220,7 +221,7 @@ static void filter_reconfig(struct MPContext *mpctx, struct vo_chain *vo_c)
if (params.rotate) {
if (!(vo_c->vo->driver->caps & VO_CAP_ROTATE90) || params.rotate % 90) {
// Try to insert a rotation filter.
- char *args[] = {"angle", "auto", NULL};
+ char *args[] = {"angle", "auto", "warn", "no", NULL};
if (try_filter(vo_c, "rotate", "autorotate", args) < 0)
MP_ERR(vo_c, "Can't insert rotation filter.\n");
@@ -231,7 +232,7 @@ static void filter_reconfig(struct MPContext *mpctx, struct vo_chain *vo_c)
char *to = (char *)MP_STEREO3D_NAME(params.stereo_out);
if (to) {
- char *args[] = {"in", "auto", "out", to, NULL, NULL};
+ char *args[] = {"in", "auto", "out", to, "warn", "no", NULL, NULL};
if (try_filter(vo_c, "stereo3d", "autostereo3d", args) < 0)
MP_ERR(vo_c, "Can't insert 3D conversion filter.\n");