summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-02-19 07:40:10 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-02-19 07:40:10 (GMT)
commitd51b797d9003dff128e72fbd5e26a48c040c9d98 (patch)
treec315987c4af8f1803f8481c9d326a35ea04d03e9 /src/plugins
parentbaac955843c7eefe7a6f94fbb696a2d3cfa2afba (diff)
downloadQt-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.mm16
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];
}
}