diff options
author | Justin McPherson <justin.mcpherson@nokia.com> | 2010-02-19 07:40:10 (GMT) |
---|---|---|
committer | Justin McPherson <justin.mcpherson@nokia.com> | 2010-02-19 07:40:10 (GMT) |
commit | d51b797d9003dff128e72fbd5e26a48c040c9d98 (patch) | |
tree | c315987c4af8f1803f8481c9d326a35ea04d03e9 /src/plugins | |
parent | baac955843c7eefe7a6f94fbb696a2d3cfa2afba (diff) | |
download | Qt-d51b797d9003dff128e72fbd5e26a48c040c9d98.zip Qt-d51b797d9003dff128e72fbd5e26a48c040c9d98.tar.gz Qt-d51b797d9003dff128e72fbd5e26a48c040c9d98.tar.bz2 |
Use old notification name for OSX < 10.6.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/mediaservices/qt7/mediaplayer/qt7playersession.mm | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/plugins/mediaservices/qt7/mediaplayer/qt7playersession.mm b/src/plugins/mediaservices/qt7/mediaplayer/qt7playersession.mm index 74b1cae..2a82ffa 100644 --- a/src/plugins/mediaservices/qt7/mediaplayer/qt7playersession.mm +++ b/src/plugins/mediaservices/qt7/mediaplayer/qt7playersession.mm @@ -101,13 +101,15 @@ QT_BEGIN_NAMESPACE [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(processStateChange:) name: QTMovieLoadStateDidChangeNotification object: m_movie]; - [[NSNotificationCenter defaultCenter] addObserver: self selector: - @selector(processVolumeChange:) name: QTMovieVolumeDidChangeNotification object: m_movie]; - - /* - [[NSNotificationCenter defaultCenter] addObserver: self selector: - @selector(processNaturalSizeChange:) name: QTMovieNaturalSizeDidChangeNotification object: m_movie]; - */ + [[NSNotificationCenter defaultCenter] addObserver: self + selector: @selector(processVolumeChange:) + name: +#if defined(MAC_OS_X_VERSION_10_6) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6) + QTMovieNaturalSizeDidChangeNotification +#else + QTMovieEditedNotification +#endif + object: m_movie]; [movie retain]; } } |