Skip to content

Commit

Permalink
VAAPI: Add a log warning if EGL is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Jan 27, 2020
1 parent 104cad9 commit 284185a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mythtv/libs/libmythtv/decoders/mythvaapicontext.cpp
Expand Up @@ -593,6 +593,20 @@ const VAAPIProfiles &MythVAAPIContext::GetProfiles(void)
av_freep(&profilelist);
av_buffer_unref(&hwdevicectx);

// Once only check for EGL support for best performance
MythRenderOpenGL* render = MythRenderOpenGL::GetOpenGLRender();
if (!s_profiles.isEmpty() && render)
{
if (render->IsEGL())
{
LOG(VB_GENERAL, LOG_INFO, LOC + "EGL DMABUF available for best VAAPI performance");
}
else
{
LOG(VB_GENERAL, LOG_WARNING, LOC + "No EGL support. VAAPI performance will be reduced");
LOG(VB_GENERAL, LOG_WARNING, LOC + "Consider setting MYTHTV_FORCE_EGL=1 to try and enable");
}
}
return s_profiles;
}

Expand Down

0 comments on commit 284185a

Please sign in to comment.