summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-02-20 13:42:08 +0100
committerwm4 <wm4@nowhere>2017-02-20 13:42:08 +0100
commite5df57c7554da08c812252c5c2d8bf5d372e19e3 (patch)
tree5f542ad56b1146407efa1f72e4f40a083a5a90af /player/video.c
parent134c9d9df5c5d38960f2cd4fd5f23dcb9205811e (diff)
downloadmpv-e5df57c7554da08c812252c5c2d8bf5d372e19e3.tar.bz2
mpv-e5df57c7554da08c812252c5c2d8bf5d372e19e3.tar.xz
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.)
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c3
1 files changed, 3 insertions, 0 deletions
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;