Enable hardware decoding

Tested working with VA-API on i965.

Issue #4.

Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
This commit is contained in:
Mahyar Koshkouei 2018-01-02 22:00:54 +00:00
parent 21653173ed
commit 169e81b4a5
1 changed files with 6 additions and 0 deletions

View File

@ -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");