summaryrefslogtreecommitdiffstats
path: root/src/multimedia
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2024-03-28 12:39:33 +0800
committerTim Blechmann <tim@klingt.org>2024-03-29 07:31:52 +0800
commitb915eb159537bfa85bbeb760b032772cbddf1f59 (patch)
tree56c6e9ee001bdcb2db395ea329c55e83c624f348 /src/multimedia
parent7efc9f9b6d058b6e7e6c768b94abf602719b31b4 (diff)
GStreamer: remove relic of restarting playback after new source is set
`QGstreamerMediaPlayer::setMedia` tried to restart the playback state if the playback was running before setting them media. However `QMediaPlayer::setSource` explicitly stops the playback. Removing the code and documenting the setSource behavior in the public documentation Pick-to: 6.5 6.6 6.7 Change-Id: I03722afc2bb6f87f79c005a3b64ca7e036ac27f2 Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Diffstat (limited to 'src/multimedia')
-rw-r--r--src/multimedia/playback/qmediaplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/multimedia/playback/qmediaplayer.cpp b/src/multimedia/playback/qmediaplayer.cpp
index 2e504bdf8..a5b43dc32 100644
--- a/src/multimedia/playback/qmediaplayer.cpp
+++ b/src/multimedia/playback/qmediaplayer.cpp
@@ -591,7 +591,7 @@ void QMediaPlayer::setPlaybackRate(qreal rate)
Setting the media to a null QUrl will cause the player to discard all
information relating to the current media source and to cease all I/O operations related
- to that media.
+ to that media. Setting the media will stop the playback.
\note This function returns immediately after recording the specified source of the media.
It does not wait for the media to finish loading and does not check for errors. Listen for