summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Kendall <mkendall@mythtv.org>2011-03-19 03:44:20 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-03-19 03:44:20 (GMT)
commit6ce20f63502997afe7bffa82ccc47825fcc6f143 (patch)
tree5c4eed898648a4d9829c2072e01d0d1e1632876b
parent8c7d781b41c8d39555ee64f7ba188a910e5eb239 (diff)
Video playback: Don't try and display the OSD when embedded.
-rw-r--r--mythtv/libs/libmythtv/videoout_d3d.cpp2
-rw-r--r--mythtv/libs/libmythtv/videoout_opengl.cpp2
-rw-r--r--mythtv/libs/libmythtv/videoout_quartz.cpp3
-rw-r--r--mythtv/libs/libmythtv/videoout_vdpau.cpp2
4 files changed, 5 insertions, 4 deletions
diff --git a/mythtv/libs/libmythtv/videoout_d3d.cpp b/mythtv/libs/libmythtv/videoout_d3d.cpp
index f5b9050..7f6a4ec 100644
--- a/mythtv/libs/libmythtv/videoout_d3d.cpp
+++ b/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();
diff --git a/mythtv/libs/libmythtv/videoout_opengl.cpp b/mythtv/libs/libmythtv/videoout_opengl.cpp
index d31742f..396febf 100644
--- a/mythtv/libs/libmythtv/videoout_opengl.cpp
+++ b/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);
diff --git a/mythtv/libs/libmythtv/videoout_quartz.cpp b/mythtv/libs/libmythtv/videoout_quartz.cpp
index 088eea8..12b830c 100644
--- a/mythtv/libs/libmythtv/videoout_quartz.cpp
+++ b/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 &&
diff --git a/mythtv/libs/libmythtv/videoout_vdpau.cpp b/mythtv/libs/libmythtv/videoout_vdpau.cpp
index 8b7720a..d296cfa 100644
--- a/mythtv/libs/libmythtv/videoout_vdpau.cpp
+++ b/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)