summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@qt.io>2016-08-31 18:06:08 +0200
committerYoann Lopes <yoann.lopes@qt.io>2016-09-28 11:30:11 +0000
commit309dcb92590a9c159a8f4497d8f9582552dd8730 (patch)
treeaddb500787a4c71d71498aec57b2d6b4e75a18f1
parent5472ea150693d7eadf21f0e7db8354896eaca2d6 (diff)
Doc: Add comment about stream requirements
Change-Id: I92e16722dc5cc8df23cf4ed0d048a0d2a23956eb Reviewed-by: Yoann Lopes <yoann.lopes@qt.io>
-rw-r--r--src/multimedia/playback/qmediaplayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multimedia/playback/qmediaplayer.cpp b/src/multimedia/playback/qmediaplayer.cpp
index e6e4c7c1..d349654f 100644
--- a/src/multimedia/playback/qmediaplayer.cpp
+++ b/src/multimedia/playback/qmediaplayer.cpp
@@ -956,8 +956,8 @@ void QMediaPlayer::setPlaybackRate(qreal rate)
Sets the current \a media source.
If a \a stream is supplied; media data will be read from it instead of resolving the media
- source. In this case the media source may still be used to resolve additional information
- about the media such as mime type.
+ source. In this case the media source may still be used to resolve additional information
+ about the media such as mime type. The \a stream must be open and readable.
Setting the media to a null QMediaContent will cause the player to discard all
information relating to the current media source and to cease all I/O operations related