diff options
author | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-08-25 14:19:11 (GMT) |
---|---|---|
committer | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-08-25 14:19:11 (GMT) |
commit | f3defb60f21cfe2456ace1148afcce43112f9c51 (patch) | |
tree | 1f7420f2b83eff53615f4b427f4f19a0b6f34b7b /src/3rdparty/phonon/mmf/abstractmediaplayer.cpp | |
parent | 9bcdcc33e1abd202a5b0ec156ff22624bd21740c (diff) | |
download | Qt-f3defb60f21cfe2456ace1148afcce43112f9c51.zip Qt-f3defb60f21cfe2456ace1148afcce43112f9c51.tar.gz Qt-f3defb60f21cfe2456ace1148afcce43112f9c51.tar.bz2 |
Added some missing signals in MediaObject; fixed seek slider in musicplayer.exe
Diffstat (limited to 'src/3rdparty/phonon/mmf/abstractmediaplayer.cpp')
-rw-r--r-- | src/3rdparty/phonon/mmf/abstractmediaplayer.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp b/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp index ccb94c4..114ba13 100644 --- a/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp +++ b/src/3rdparty/phonon/mmf/abstractmediaplayer.cpp @@ -169,6 +169,26 @@ void MMF::AbstractMediaPlayer::stop() TRACE_EXIT("state %d", m_state); } +void MMF::AbstractMediaPlayer::seek(qint64 ms) +{ + TRACE_CONTEXT(AbstractMediaPlayer::seek, EAudioApi); + TRACE_ENTRY("state %d pos %Ld", state(), ms); + + // TODO: put a state guard in here + + const bool tickTimerWasRunning = m_tickTimer->isActive(); + stopTickTimer(); + + doSeek(ms); + + if(tickTimerWasRunning) + { + startTickTimer(); + } + + TRACE_EXIT_0(); +} + bool MMF::AbstractMediaPlayer::isSeekable() const { return true; |