From 169e81b4a5878cdc786ca4cea7811d146a84c9d7 Mon Sep 17 00:00:00 2001 From: Mahyar Koshkouei Date: Tue, 2 Jan 2018 22:00:54 +0000 Subject: [PATCH] Enable hardware decoding Tested working with VA-API on i965. Issue #4. Signed-off-by: Mahyar Koshkouei --- mpv-libretro.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mpv-libretro.c b/mpv-libretro.c index dd80adb..a3fe46f 100644 --- a/mpv-libretro.c +++ b/mpv-libretro.c @@ -156,6 +156,12 @@ static void context_reset(void) return; } + if(mpv_set_option_string(mpv, "hwdec", "auto") < 0) + { + log_cb(RETRO_LOG_ERROR, "failed to enable hwdec"); + return; + } + if(mpv_command(mpv, cmd) != 0) { log_cb(RETRO_LOG_ERROR, "failed issue mpv_command\n");