summaryrefslogtreecommitdiffstats
path: root/src/plugins/mediaservices/qt7/qt7movieviewoutput.mm
diff options
context:
space:
mode:
authorDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2010-02-19 06:28:56 (GMT)
committerDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2010-02-19 06:28:56 (GMT)
commit90b9d45d77b25769834d4b879baff13a3327f4ce (patch)
treec760ebc60dac10aac9ee0a015042491f6735b1af /src/plugins/mediaservices/qt7/qt7movieviewoutput.mm
parent881164993418b15697faefc6989b7d3d217dba0a (diff)
downloadQt-90b9d45d77b25769834d4b879baff13a3327f4ce.zip
Qt-90b9d45d77b25769834d4b879baff13a3327f4ce.tar.gz
Qt-90b9d45d77b25769834d4b879baff13a3327f4ce.tar.bz2
QuickTime playback backend: listen for natural size changes and update
video outputs.
Diffstat (limited to 'src/plugins/mediaservices/qt7/qt7movieviewoutput.mm')
-rw-r--r--src/plugins/mediaservices/qt7/qt7movieviewoutput.mm7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/mediaservices/qt7/qt7movieviewoutput.mm b/src/plugins/mediaservices/qt7/qt7movieviewoutput.mm
index 8182797..b549487 100644
--- a/src/plugins/mediaservices/qt7/qt7movieviewoutput.mm
+++ b/src/plugins/mediaservices/qt7/qt7movieviewoutput.mm
@@ -177,7 +177,7 @@ void QT7MovieViewOutput::setupVideoOutput()
if (m_movie == 0 || m_winId <= 0)
return;
- NSSize size = [[(QTMovie*)m_movie attributeForKey:@"QTMovieCurrentSizeAttribute"] sizeValue];
+ NSSize size = [[(QTMovie*)m_movie attributeForKey:@"QTMovieNaturalSizeAttribute"] sizeValue];
m_nativeSize = QSize(size.width, size.height);
if (!m_movieView)
@@ -201,6 +201,11 @@ void QT7MovieViewOutput::setMovie(void *movie)
setupVideoOutput();
}
+void QT7MovieViewOutput::updateNaturalSize(const QSize &newSize)
+{
+ m_nativeSize = newSize;
+}
+
WId QT7MovieViewOutput::winId() const
{
return m_winId;