Skip to content

Commit

Permalink
OSX fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Mar 13, 2019
1 parent 0c265df commit 761593a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/mythvideotexture.cpp
Expand Up @@ -245,6 +245,7 @@ void MythVideoTexture::UpdateTextures(MythRenderOpenGL *Context,
case FMT_YUYVHQ: YV12ToYUYVHQ(Context, Frame, texture); break;
default: break;
}
break;
}
default: break;
}
Expand Down
6 changes: 3 additions & 3 deletions mythtv/libs/libmythtv/mythvtbinterop.cpp
Expand Up @@ -212,7 +212,7 @@ vector<MythVideoTexture*> MythVTBSurfaceInterop::Acquire(MythRenderOpenGL *Conte

// Create raw rectangular textures
vector<QSize> sizes;
for (int plane = 0; planes < planes; ++plane)
for (int plane = 0; plane < planes; ++plane)
{
int width = IOSurfaceGetWidthOfPlane(surface, plane);
int height = IOSurfaceGetHeightOfPlane(surface, plane);
Expand All @@ -221,9 +221,9 @@ vector<MythVideoTexture*> MythVTBSurfaceInterop::Acquire(MythRenderOpenGL *Conte
// TODO proper handling of all formats - this assumes NV12
result = MythVideoTexture::CreateTextures(m_context, FMT_VTB, FMT_NV12, sizes, QOpenGLTexture::TargetRectangle);

for (int plane = 0; plane < result.size(); ++plane)
for (uint plane = 0; plane < result.size(); ++plane)
{
MythVideoTexture* texture = result[i];
MythVideoTexture* texture = result[plane];
if (!texture)
continue;
m_context->EnableTextures(QOpenGLTexture::TargetRectangle);
Expand Down

0 comments on commit 761593a

Please sign in to comment.