diff options
author | Justin McPherson <justin.mcpherson@nokia.com> | 2010-02-19 07:49:28 (GMT) |
---|---|---|
committer | Justin McPherson <justin.mcpherson@nokia.com> | 2010-02-19 07:49:28 (GMT) |
commit | b817c92f1fc1a2ae0f566940fea3f43630fb9783 (patch) | |
tree | 1b3e119b6e8fd57b756601c349ed55a3b82659c9 /src/plugins/mediaservices | |
parent | d51b797d9003dff128e72fbd5e26a48c040c9d98 (diff) | |
download | Qt-b817c92f1fc1a2ae0f566940fea3f43630fb9783.zip Qt-b817c92f1fc1a2ae0f566940fea3f43630fb9783.tar.gz Qt-b817c92f1fc1a2ae0f566940fea3f43630fb9783.tar.bz2 |
QT5; Add back volume notification.
Diffstat (limited to 'src/plugins/mediaservices')
-rw-r--r-- | src/plugins/mediaservices/qt7/mediaplayer/qt7playersession.mm | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/src/plugins/mediaservices/qt7/mediaplayer/qt7playersession.mm b/src/plugins/mediaservices/qt7/mediaplayer/qt7playersession.mm index 2a82ffa..5507633 100644 --- a/src/plugins/mediaservices/qt7/mediaplayer/qt7playersession.mm +++ b/src/plugins/mediaservices/qt7/mediaplayer/qt7playersession.mm @@ -95,21 +95,30 @@ QT_BEGIN_NAMESPACE m_movie = movie; if (movie) { - [[NSNotificationCenter defaultCenter] addObserver: self selector: - @selector(processEOS:) name: QTMovieDidEndNotification object: m_movie]; - - [[NSNotificationCenter defaultCenter] addObserver: self selector: - @selector(processStateChange:) name: QTMovieLoadStateDidChangeNotification object: m_movie]; - - [[NSNotificationCenter defaultCenter] addObserver: self - selector: @selector(processVolumeChange:) + [[NSNotificationCenter defaultCenter] addObserver:self + selector:@selector(processEOS:) + name:QTMovieDidEndNotification + object:m_movie]; + + [[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: #if defined(MAC_OS_X_VERSION_10_6) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6) - QTMovieNaturalSizeDidChangeNotification + QTMovieNaturalSizeDidChangeNotification #else - QTMovieEditedNotification + QTMovieEditedNotification #endif - object: m_movie]; + object:m_movie]; [movie retain]; } } |