From e5df57c7554da08c812252c5c2d8bf5d372e19e3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 20 Feb 2017 13:42:08 +0100 Subject: lavfi: support hwdec filters for --lavfi-complex Not so important by itself, but important for when we replace the vf libavfilter wrapper with the common implementation. (Which will hopefully happen, but not too soon.) --- player/video.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index 6ea3e4c6e8..ee0e89c93a 100644 --- a/player/video.c +++ b/player/video.c @@ -496,6 +496,9 @@ int reinit_video_chain_src(struct MPContext *mpctx, struct lavfi_pad *src) vo_c->hwdec_devs = vo_c->vo->hwdec_devs; + if (mpctx->lavfi) + lavfi_set_hwdec_devs(mpctx->lavfi, vo_c->hwdec_devs); + vo_c->filter_src = src; if (!vo_c->filter_src) { vo_c->track = track; -- cgit v1.2.3