Skip to content

Commit

Permalink
Video playback: Don't try and display the OSD when embedded.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kendall committed Mar 19, 2011
1 parent 8c7d781 commit 6ce20f6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videoout_d3d.cpp
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videoout_opengl.cpp
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion mythtv/libs/libmythtv/videoout_quartz.cpp
Expand Up @@ -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 &&
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/videoout_vdpau.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 6ce20f6

Please sign in to comment.