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:
parent
21653173ed
commit
169e81b4a5
|
@ -156,6 +156,12 @@ static void context_reset(void)
|
||||||
return;
|
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)
|
if(mpv_command(mpv, cmd) != 0)
|
||||||
{
|
{
|
||||||
log_cb(RETRO_LOG_ERROR, "failed issue mpv_command\n");
|
log_cb(RETRO_LOG_ERROR, "failed issue mpv_command\n");
|
||||||
|
|
Loading…
Reference in New Issue