Skip to content
Browse files

Video playback: Don't try and display the OSD when embedded.

  • Loading branch information...
1 parent 8c7d781 commit 6ce20f63502997afe7bffa82ccc47825fcc6f143 Mark Kendall committed Mar 19, 2011
View
2 mythtv/libs/libmythtv/videoout_d3d.cpp
@@ -369,7 +369,7 @@ void VideoOutputD3D::PrepareFrame(VideoFrame *buffer, FrameScanType t,
(*it)->Draw();
}
}
- if (osd && m_osd_painter)
+ if (osd && m_osd_painter && !window.IsEmbedding())
osd->DrawDirect(m_osd_painter, GetTotalOSDBounds().size(),
true);
m_render->End();
View
2 mythtv/libs/libmythtv/videoout_opengl.cpp
@@ -426,7 +426,7 @@ void VideoOutputOpenGL::PrepareFrame(VideoFrame *buffer, FrameScanType t,
}
}
- if (osd && gl_painter)
+ if (osd && gl_painter && !window.IsEmbedding())
osd->DrawDirect(gl_painter, GetTotalOSDBounds().size(), true);
gl_context->Flush(false);
View
3 mythtv/libs/libmythtv/videoout_quartz.cpp
@@ -1687,7 +1687,8 @@ void VideoOutputQuartz::ProcessFrame(VideoFrame *frame, OSD *osd,
}
ShowPIPs(frame, pipPlayers);
- DisplayOSD(frame, osd);
+ if (osd && !window.IsEmbedding())
+ DisplayOSD(frame, osd);
if (m_deinterlacing &&
m_deintFilter != NULL &&
View
2 mythtv/libs/libmythtv/videoout_vdpau.cpp
@@ -499,7 +499,7 @@ void VideoOutputVDPAU::PrepareFrame(VideoFrame *frame, FrameScanType scan,
m_pip_ready ? m_pip_layer : 0, 0))
VERBOSE(VB_PLAYBACK, LOC_ERR + QString("Prepare frame failed."));
- if (osd && m_osd_painter)
+ if (osd && m_osd_painter && !window.IsEmbedding())
osd->DrawDirect(m_osd_painter, GetTotalOSDBounds().size(), true);
if (!frame)

0 comments on commit 6ce20f6

Please sign in to comment.
Something went wrong with that request. Please try again.