Skip to content
Permalink
Browse files

VideoOutputOpenGL: More VAAPI ifdeffery

  • Loading branch information...
mark-kendall committed Feb 11, 2019
1 parent 6126130 commit bd69eb3ad9ba21b05c3f039374dab05474c8cb04
Showing with 4 additions and 0 deletions.
  1. +4 −0 mythtv/libs/libmythtv/videoout_opengl.cpp
@@ -393,6 +393,7 @@ bool VideoOutputOpenGL::CreateBuffers(void)
{
vbuffers.Init(8, false, 1, 4, 2, 1);
}
#ifdef USING_GLVAAPI
else if (codec_is_vaapi(video_codec_id))
{
vbuffers.Init(NUM_VAAPI_BUFFERS, false, 2, 1, 4, 1);
@@ -401,6 +402,7 @@ bool VideoOutputOpenGL::CreateBuffers(void)
success &= vbuffers.CreateBuffer(window.GetVideoDim().width(), window.GetVideoDim().height(), i, nullptr, FMT_VAAPI);
return success;
}
#endif
else
{
vbuffers.Init(31, false, 1, 12, 4, 2);
@@ -612,11 +614,13 @@ QStringList VideoOutputOpenGL::GetAllowedRenderers(MythCodecID CodecId, const QS
return allowed;
}

#ifdef USING_GLVAAPI
if (MythOpenGLInterop::IsCodecSupported(CodecId))
{
allowed += "openglvaapi";
return allowed;
}
#endif

return allowed;
}

0 comments on commit bd69eb3

Please sign in to comment.
You can’t perform that action at this time.