diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-01-11 22:29:34 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-01-22 07:02:14 +0000 |
commit | 778886e93e7525ad3b485c15a1a2cc84ca80b016 (patch) | |
tree | 3eca923d285fbe763076963c269a228e192e72ae /src/plugins/wmf/player/mfplayercontrol.h | |
parent | 21583d119ab48274984df1a8574ea672345120fa (diff) |
Get rid of QMediaContent
There's no need for it without playlist support in QMediaPlayer.
Simply replace it with a QUrl.
Change-Id: I28421772b106dad67d321f2c7053558ebfe2a592
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/plugins/wmf/player/mfplayercontrol.h')
-rw-r--r-- | src/plugins/wmf/player/mfplayercontrol.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/wmf/player/mfplayercontrol.h b/src/plugins/wmf/player/mfplayercontrol.h index a75fac493..87e1a1f2d 100644 --- a/src/plugins/wmf/player/mfplayercontrol.h +++ b/src/plugins/wmf/player/mfplayercontrol.h @@ -40,7 +40,7 @@ #ifndef MFPLAYERCONTROL_H #define MFPLAYERCONTROL_H -#include "qmediacontent.h" +#include "QUrl.h" #include "qmediaplayercontrol.h" #include <QtCore/qcoreevent.h> @@ -83,9 +83,9 @@ public: qreal playbackRate() const; void setPlaybackRate(qreal rate); - QMediaContent media() const; + QUrl media() const; const QIODevice *mediaStream() const; - void setMedia(const QMediaContent &media, QIODevice *stream); + void setMedia(const QUrl &media, QIODevice *stream); void play(); void pause(); @@ -115,7 +115,7 @@ private: bool m_seekable; QIODevice *m_stream; - QMediaContent m_media; + QUrl m_media; MFPlayerSession *m_session; }; |