diff options
author | Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> | 2010-02-19 06:28:56 (GMT) |
---|---|---|
committer | Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> | 2010-02-19 06:28:56 (GMT) |
commit | 90b9d45d77b25769834d4b879baff13a3327f4ce (patch) | |
tree | c760ebc60dac10aac9ee0a015042491f6735b1af /src/plugins/mediaservices/qt7/qt7movieviewoutput.mm | |
parent | 881164993418b15697faefc6989b7d3d217dba0a (diff) | |
download | Qt-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.mm | 7 |
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; |