From 3a9e661e929c34d25810fa903abbd9961f73ecef Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 2 Apr 2017 17:59:45 +0200 Subject: 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. --- player/video.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'player') 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"); } -- cgit v1.2.3