diff options
Diffstat (limited to 'video/out/gl_hwdec_vaglx.c')
-rw-r--r-- | video/out/gl_hwdec_vaglx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/gl_hwdec_vaglx.c b/video/out/gl_hwdec_vaglx.c index d93fa6253e..555e61aec3 100644 --- a/video/out/gl_hwdec_vaglx.c +++ b/video/out/gl_hwdec_vaglx.c @@ -80,6 +80,10 @@ static int create(struct gl_hwdec *hw) vaTerminate(p->display); return -1; } + if (hw->reject_emulated && va_guess_if_emulated(p->ctx)) { + destroy(hw); + return -1; + } hw->info->vaapi_ctx = p->ctx; hw->converted_imgfmt = IMGFMT_RGB0; return 0; |