diff options
author | Ling Hu <ling.hu@nokia.com> | 2012-06-21 16:18:05 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-25 06:39:08 +0200 |
commit | 1b7da9e0adf8a2638061d75e2697177be20ddc72 (patch) | |
tree | 5f5616f7a848c7e627240759ec1c7dba8ce9d8ac /src/plugins/wmf/player/mfplayersession.h | |
parent | 6d301388e1484c55c4f715d26c136c91d1b5dea9 (diff) |
Fixed some crash with WMF backend
Change-Id: I721ba049e2ecafff53ee70d5b930fb52c15fbe09
Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'src/plugins/wmf/player/mfplayersession.h')
-rw-r--r-- | src/plugins/wmf/player/mfplayersession.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/wmf/player/mfplayersession.h b/src/plugins/wmf/player/mfplayersession.h index 911230e9b..70ce92562 100644 --- a/src/plugins/wmf/player/mfplayersession.h +++ b/src/plugins/wmf/player/mfplayersession.h @@ -69,13 +69,14 @@ class MFAudioEndpointControl; class MFVideoRendererControl; class MFPlayerControl; class MFMetaDataControl; +class MFPlayerService; class MFPlayerSession : public QObject, public IMFAsyncCallback { Q_OBJECT friend class SourceResolver; public: - MFPlayerSession(QObject *parent = 0); + MFPlayerSession(MFPlayerService *playerService = 0); ~MFPlayerSession(); STDMETHODIMP QueryInterface(REFIID riid, LPVOID *ppvObject); @@ -112,6 +113,8 @@ public: void changeStatus(QMediaPlayer::MediaStatus newStatus); + void close(); + Q_SIGNALS: void error(QMediaPlayer::Error error, QString errorString, bool isFatal); void sessionEvent(IMFMediaEvent *sessionEvent); @@ -132,6 +135,8 @@ private Q_SLOTS: void handleSourceError(long hr); private: + long m_cRef; + MFPlayerService *m_playerService; IMFMediaSession *m_session; IMFPresentationClock *m_presentationClock; IMFRateControl *m_rateControl; |