From a4705e8b59a0c496852d67db591bb480e0146e5e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 10 Dec 2017 23:51:22 +0200 Subject: vd_lavc: always load VO interops with non-copy hw decoders For METHOD_INTERNAL hwdecs (non-copy cases), make sure the VO interops are always loaded, because those decoders will output hardware pixel formats, which will need special support in vo_gpu. Otherwise, initialization will fail, complaining that it can't convert the output format to something the VO supports. --- video/decode/vd_lavc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video/decode') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 58dba5a81e..87964d6fdc 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -471,6 +471,10 @@ static void select_and_set_hwdec(struct dec_video *vd) } MP_WARN(vd, "Using emulated hardware decoding API.\n"); } + } else if (!hwdec->copying) { + // Most likely METHOD_INTERNAL, which often use delay-loaded + // VO support as well. + hwdec_devices_request_all(vd->hwdec_devs); } ctx->use_hwdec = true; -- cgit v1.2.3