diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2013-10-17 12:22:42 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-18 09:21:18 +0200 |
commit | d7dd22b9955ffde6d3c663655d9f9d4a58ca3894 (patch) | |
tree | fda246fcb42f08d09b030e0e3334620a92474fd8 /src/imports/multimedia/qdeclarativeaudio_p.h | |
parent | 068169528c5e8a281b448c21d6eb5dbd88911dc0 (diff) |
Correctly clear the current media in Audio and MediaPlayer qml elements.v5.2.0-beta1
When setting the source to an empty string in these elements, pass an
empty QMediaContent to the backend rather than an empty URL. The former
is the correct way to clear the current media.
Task-number: QTBUG-34125
Change-Id: I3dd7b07abc0bd23a1253c8c0e075b174c17a4d3f
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'src/imports/multimedia/qdeclarativeaudio_p.h')
-rw-r--r-- | src/imports/multimedia/qdeclarativeaudio_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/multimedia/qdeclarativeaudio_p.h b/src/imports/multimedia/qdeclarativeaudio_p.h index b8a75c659..1c67bc3ad 100644 --- a/src/imports/multimedia/qdeclarativeaudio_p.h +++ b/src/imports/multimedia/qdeclarativeaudio_p.h @@ -257,6 +257,7 @@ private: QMediaPlayer::Error m_error; QString m_errorString; QUrl m_source; + QMediaContent m_content; QScopedPointer<QDeclarativeMediaMetaData> m_metaData; |