From 561416597e33e2c314f0d69433e955c059ee24eb Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 3 Jul 2015 16:37:01 +0200 Subject: client API, dxva2: add a workaround for OpenGL fullscreen issues This is basically a hack for drivers which prevent the mpv DXVA2 decoder glue from working if OpenGL is in fullscreen mode. Since it doesn't add any "hard" new API to the client API, some of the code would be required for a true zero-copy hw decoding pipeline, and sine it isn't too much code after all, this is probably acceptable. --- video/decode/dxva2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/decode') diff --git a/video/decode/dxva2.c b/video/decode/dxva2.c index 62b27671ef..0e99d550ba 100644 --- a/video/decode/dxva2.c +++ b/video/decode/dxva2.c @@ -675,6 +675,7 @@ static int dxva2_init_decoder(struct lavc_ctx *s, int fmt, int w, int h) static int probe(struct vd_lavc_hwdec *hwdec, struct mp_hwdec_info *info, const char *decoder) { + hwdec_request_api(info, "dxva2"); // we can do without too for (int i = 0; dxva2_modes[i].guid; i++) { const dxva2_mode *mode = &dxva2_modes[i]; if (mp_codec_to_av_codec_id(decoder) == mode->codec) -- cgit v1.2.3