Skip to content

Commit

Permalink
OpenGL Video: Extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Sep 19, 2020
1 parent 3713a1e commit 06450d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions mythtv/libs/libmythtv/opengl/mythopenglvideo.cpp
Expand Up @@ -61,7 +61,10 @@ void MythOpenGLVideo::Init()
{
m_openglRender = dynamic_cast<MythRenderOpenGL*>(m_render);
if (!m_openglRender || !m_videoColourSpace)
{
LOG(VB_GENERAL, LOG_ERR, LOC + "Fatal error");
return;
}

OpenGLLocker ctx_lock(m_openglRender);
if (m_openglRender->isOpenGLES())
Expand Down
3 changes: 2 additions & 1 deletion mythtv/libs/libmythtv/opengl/mythvideotexture.cpp
Expand Up @@ -284,7 +284,8 @@ void MythVideoTexture::UpdateTextures(MythRenderOpenGL *Context,
{
if (!Context || !Frame || Textures.empty())
{
LOG(VB_GENERAL, LOG_ERR, LOC + "Error");
LOG(VB_GENERAL, LOG_ERR, LOC + QString("Texture error: Context %1 Frame %2 Textures %3")
.arg(Context != nullptr).arg(Frame != nullptr).arg(Textures.size()));
return;
}

Expand Down

0 comments on commit 06450d1

Please sign in to comment.