Initialize the mock player state variables.
So valgrind is less grumpy. Change-Id: I3219fd1eaa2296bc6e158876137e0b79c4d8b714 Reviewed-by: Ling Hu <ling.hu@nokia.com> Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
f7fdfbe7de
commit
45a3823631
@@ -49,7 +49,23 @@ class MockMediaPlayerControl : public QMediaPlayerControl
|
||||
friend class MockMediaPlayerService;
|
||||
|
||||
public:
|
||||
MockMediaPlayerControl():QMediaPlayerControl(0) {}
|
||||
MockMediaPlayerControl()
|
||||
: QMediaPlayerControl(0)
|
||||
, _state(QMediaPlayer::StoppedState)
|
||||
, _mediaStatus(QMediaPlayer::NoMedia)
|
||||
, _error(QMediaPlayer::NoError)
|
||||
, _duration(0)
|
||||
, _position(0)
|
||||
, _volume(100)
|
||||
, _muted(false)
|
||||
, _bufferStatus(0)
|
||||
, _audioAvailable(false)
|
||||
, _videoAvailable(false)
|
||||
, _isSeekable(true)
|
||||
, _playbackRate(qreal(1.0))
|
||||
, _stream(0)
|
||||
, _isValid(false)
|
||||
{}
|
||||
|
||||
QMediaPlayer::State state() const { return _state; }
|
||||
QMediaPlayer::MediaStatus mediaStatus() const { return _mediaStatus; }
|
||||
|
||||
Reference in New Issue
Block a user