Skip to content

Commit

Permalink
VideoOutputOpenGL: Fix a logic error
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Mar 23, 2019
1 parent 734145a commit b9374d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mythtv/libs/libmythtv/videoout_opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,20 +363,20 @@ void VideoOutputOpenGL::ProcessFrame(VideoFrame *Frame, OSD */*osd*/,
StopEmbedding();
}

bool error = Init(m_newVideoDim, m_newVideoDispDim, m_newAspect,
0, window.GetDisplayVisibleRect(), m_newCodecId);
bool ok = Init(m_newVideoDim, m_newVideoDispDim, m_newAspect,
0, window.GetDisplayVisibleRect(), m_newCodecId);
m_newCodecId = kCodec_NONE;
m_newVideoDim = QSize();
m_newVideoDispDim = QSize();
m_newAspect = 0.0f;

if (wasembedding && !error)
if (wasembedding && ok)
{
EmbedInWidget(oldrect);
BestDeint();
}

if (error)
if (!ok)
return;
}

Expand Down

0 comments on commit b9374d4

Please sign in to comment.