summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-07-07 17:12:46 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-07-07 17:12:46 (GMT)
commit43f67922b2d58b31d9baf48e3d9f177388f90faf (patch)
treee7452802d46bb2b22b0868b1e4f1264ae587e3af /src/3rdparty
parent1c1094a432fc3b88c86c8af37a80a560571fb2fe (diff)
downloadQt-43f67922b2d58b31d9baf48e3d9f177388f90faf.zip
Qt-43f67922b2d58b31d9baf48e3d9f177388f90faf.tar.gz
Qt-43f67922b2d58b31d9baf48e3d9f177388f90faf.tar.bz2
Added trace statements to Phonon MMF backend
Reviewed-by: trustme
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/phonon/mmf/videoplayer_surface.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/3rdparty/phonon/mmf/videoplayer_surface.cpp b/src/3rdparty/phonon/mmf/videoplayer_surface.cpp
index 343370c..f380e69 100644
--- a/src/3rdparty/phonon/mmf/videoplayer_surface.cpp
+++ b/src/3rdparty/phonon/mmf/videoplayer_surface.cpp
@@ -107,6 +107,9 @@ void MMF::SurfaceVideoPlayer::handleVideoWindowChanged()
void MMF::SurfaceVideoPlayer::handleParametersChanged(VideoParameters parameters)
{
+ TRACE_CONTEXT(SurfaceVideoPlayer::handleParametersChanged, EVideoApi);
+ TRACE_ENTRY("parameters 0x%x", parameters.operator int());
+
TRect rect;
if (m_videoOutput) {
m_videoOutput->dump();
@@ -137,12 +140,20 @@ void MMF::SurfaceVideoPlayer::handleParametersChanged(VideoParameters parameters
}
}
}
+
+ TRACE_EXIT_0();
}
void MMF::SurfaceVideoPlayer::addDisplayWindow(const TRect &rect)
{
+ TRACE_CONTEXT(SurfaceVideoPlayer::addDisplayWindow, EVideoApi);
+ TRACE_ENTRY("rect %d %d - %d %d", rect.iTl.iX, rect.iTl.iY, rect.iBr.iX, rect.iBr.iY);
+
Q_ASSERT(!m_displayWindow);
RWindow *window = static_cast<RWindow *>(m_window);
+
+ TRACE("window 0x%08x", window);
+
if (window) {
window->SetBackgroundColor(TRgb(0, 0, 0, 255));
CVideoPlayerUtility2 *player = static_cast<CVideoPlayerUtility2 *>(m_player.data());
@@ -152,11 +163,17 @@ void MMF::SurfaceVideoPlayer::addDisplayWindow(const TRect &rect)
m_displayWindow = window;
else
setError(tr("Video display error"), err);
+ TRACE("err %d", err);
}
+
+ TRACE_EXIT_0();
}
void MMF::SurfaceVideoPlayer::removeDisplayWindow()
{
+ TRACE_CONTEXT(SurfaceVideoPlayer::removeDisplayWindow, EVideoApi);
+ TRACE("player 0x%08x window 0x%08x", m_player.data(), m_displayWindow);
+
CVideoPlayerUtility2 *player = static_cast<CVideoPlayerUtility2 *>(m_player.data());
if (player && m_displayWindow) {
player->RemoveDisplayWindow(*m_displayWindow);