Skip to content

Commit

Permalink
MythVAAPIInteropDRM: Fix build for older libva versions
Browse files Browse the repository at this point in the history
- note - this is test code only, so is just summarily disabled for older
versions. no need to fallback or log.
  • Loading branch information
mark-kendall committed Nov 12, 2019
1 parent 58402a4 commit 5dc3f3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/opengl/mythvaapidrminterop.cpp
Expand Up @@ -408,6 +408,7 @@ vector<MythVideoTexture*> MythVAAPIInteropDRM::AcquirePrime(VASurfaceID Id,
{
vector<MythVideoTexture*> result;

#if VA_CHECK_VERSION(1, 1, 0)
if (!m_drmFrames.contains(Id))
{
INIT_ST;
Expand Down Expand Up @@ -452,6 +453,7 @@ vector<MythVideoTexture*> MythVAAPIInteropDRM::AcquirePrime(VASurfaceID Id,
Frame->buf = temp;
Frame->codec = FMT_VAAPI;
Frame->pix_fmt = AV_PIX_FMT_VAAPI;
#endif
return result;
}

Expand Down

0 comments on commit 5dc3f3a

Please sign in to comment.