diff options
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; |