Correctly clear the current media in Audio and MediaPlayer qml elements. v5.2.0-beta1
authorYoann Lopes <yoann.lopes@digia.com>
Thu, 17 Oct 2013 10:22:42 +0000 (12:22 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 18 Oct 2013 07:21:18 +0000 (09:21 +0200)
commitd7dd22b9955ffde6d3c663655d9f9d4a58ca3894
treefda246fcb42f08d09b030e0e3334620a92474fd8
parent068169528c5e8a281b448c21d6eb5dbd88911dc0
Correctly clear the current media in Audio and MediaPlayer qml elements.

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>
src/imports/multimedia/qdeclarativeaudio.cpp
src/imports/multimedia/qdeclarativeaudio_p.h