diff options
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]; } } |