Skip to content

Commit

Permalink
VideoOutputOpenGL: Fix blank screen in live tv.
Browse files Browse the repository at this point in the history
Fixes #9770
  • Loading branch information
Mark Kendall committed Jun 20, 2011
1 parent 651b83b commit 3363c91
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions mythtv/libs/libmythtv/videoout_opengl.cpp
Expand Up @@ -224,16 +224,20 @@ bool VideoOutputOpenGL::InputChanged(const QSize &input_size,
return false;
}

if (input_size == window.GetActualVideoDim())
bool cid_changed = (video_codec_id != av_codec_id);
bool res_changed = input_size != window.GetActualVideoDim();
bool asp_changed = aspect != window.GetVideoAspect();

if (!res_changed && !cid_changed)
{
aspect_only = video_codec_id == av_codec_id;
if (window.GetVideoAspect() != aspect)
if (asp_changed)
{
aspect_only = true;
VideoAspectRatioChanged(aspect);
MoveResize();
if (wasembedding)
EmbedInWidget(oldrect);
}
if (wasembedding)
EmbedInWidget(oldrect);
return true;
}

Expand Down Expand Up @@ -479,7 +483,6 @@ void VideoOutputOpenGL::ProcessFrame(VideoFrame *frame, OSD *osd,
void VideoOutputOpenGL::PrepareFrame(VideoFrame *buffer, FrameScanType t,
OSD *osd)
{
(void)osd;
if (!gl_context)
return;

Expand Down

0 comments on commit 3363c91

Please sign in to comment.