summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-09-02 17:48:36 (GMT)
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-09-07 10:26:59 (GMT)
commit7823dc43b85c3d1dd2f3ba10d0e7efbd83888059 (patch)
tree5c3f04ce562a506d97c525a936781f6ffc12129d /src
parent6705f143db308fb10dfc09988bc15874eebb75a8 (diff)
downloadQt-7823dc43b85c3d1dd2f3ba10d0e7efbd83888059.zip
Qt-7823dc43b85c3d1dd2f3ba10d0e7efbd83888059.tar.gz
Qt-7823dc43b85c3d1dd2f3ba10d0e7efbd83888059.tar.bz2
Added a macro for setting video output region to null
This is useful when debugging problems with the interaction between video rendering, Qt widget rendering and the underlying native control / window system.
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/phonon/mmf/defs.h4
-rw-r--r--src/3rdparty/phonon/mmf/videoplayer.cpp43
2 files changed, 10 insertions, 37 deletions
diff --git a/src/3rdparty/phonon/mmf/defs.h b/src/3rdparty/phonon/mmf/defs.h
index 60f363b..afb25dc 100644
--- a/src/3rdparty/phonon/mmf/defs.h
+++ b/src/3rdparty/phonon/mmf/defs.h
@@ -34,6 +34,10 @@ along with this library. If not, see <http://www.gnu.org/licenses/>.
// rect, i.e. QWidget::winId()->Rect()
//#define PHONON_MMF_HARD_CODE_VIDEO_RECT
+// Hack to make the video invisible. This is used in order to debug
+// problems caused by the window-owning control change.
+//#define PHONON_MMF_HARD_CODE_VIDEO_RECT_TO_EMPTY
+
QT_BEGIN_NAMESPACE
namespace Phonon
diff --git a/src/3rdparty/phonon/mmf/videoplayer.cpp b/src/3rdparty/phonon/mmf/videoplayer.cpp
index a73c6ec..e8b792f 100644
--- a/src/3rdparty/phonon/mmf/videoplayer.cpp
+++ b/src/3rdparty/phonon/mmf/videoplayer.cpp
@@ -412,41 +412,6 @@ void MMF::VideoPlayer::getNativeWindowSystemHandles()
m_screenDevice = coeEnv->ScreenDevice();
m_window = control->DrawableWindow();
-/*
- TRACE("control 0x%08x", control);
- TRACE("control IsVisible %d", control->IsVisible());
- TRACE("control IsDimmed %d", control->IsDimmed());
- TRACE("control HasBorder %d", control->HasBorder());
- TRACE("control Position %d %d",
- control->Position().iX, control->Position().iY);
- TRACE("control Rect %d %d - %d %d",
- control->Rect().iTl.iX, control->Rect().iTl.iY,
- control->Rect().iBr.iX, control->Rect().iBr.iY);
- TRACE("control OwnsWindow %d", control->OwnsWindow());
-
- CCoeEnv* const coeEnv = control->ControlEnv();
-
- m_wsSession = &(coeEnv->WsSession());
-
- TRACE("session Handle 0x%08x", m_wsSession->Handle());
-
- m_screenDevice = coeEnv->ScreenDevice();
-
- TRACE("device WsHandle 0x%08x", m_screenDevice->WsHandle());
-
- m_window = control->DrawableWindow();
-
- TRACE("window ClientHandle 0x%08x", m_window->ClientHandle());
- TRACE("window WsHandle 0x%08x", m_window->WsHandle());
- TRACE("window WindowGroupId %d", m_window->WindowGroupId());
- TRACE("window Position %d %d",
- m_window->Position().iX, m_window->Position().iY);
- TRACE("window AbsPosition %d %d",
- m_window->AbsPosition().iX, m_window->AbsPosition().iY);
- TRACE("window Size %d %d",
- m_window->Size().iWidth, m_window->Size().iHeight);
-*/
-
#ifdef _DEBUG
QScopedPointer<ObjectDump::QDumper> dumper(new ObjectDump::QDumper);
dumper->setPrefix("Phonon::MMF"); // to aid searchability of logs
@@ -460,12 +425,16 @@ void MMF::VideoPlayer::getNativeWindowSystemHandles()
// updateGeometry on the parent widget?
m_windowRect = TRect(0, 100, 320, 250);
m_clipRect = m_windowRect;
-#else
+#else
m_windowRect = TRect(
control->DrawableWindow()->AbsPosition(),
control->DrawableWindow()->Size());
- //m_clipRect = control->Rect();
+ m_clipRect = m_windowRect;
+#endif
+
+#ifdef PHONON_MMF_HARD_CODE_VIDEO_RECT_TO_EMPTY
+ m_windowRect = TRect(0, 0, 0, 0);
m_clipRect = m_windowRect;
#endif