Permalink
Browse files

VideoOutputOpenGL: Fix blank screen in live tv.

Fixes #9770
  • Loading branch information...
1 parent 651b83b commit 3363c9168580e50b971b7c470842524a63c29ca7 Mark Kendall committed Jun 20, 2011
Showing with 9 additions and 6 deletions.
  1. +9 −6 mythtv/libs/libmythtv/videoout_opengl.cpp
@@ -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;
}
@@ -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;

0 comments on commit 3363c91

Please sign in to comment.