Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
1.1.1
-
None
-
Symbian^3 Hardware.
-
62b43fcb10cfc6285c23d768501f98bdff01cd7b
Description
Position cannot be set twice to the same place when playback is ongoing.
Steps to reproduce:
1 Start Playback.
2 Set position to value x (0 ms)
3 Let playback run, position will increment every second. (position is already 10000 ms)
4 Set position to value x (0 ms)
Position is not changed, it remains at 10000 ms, and playback continues from there.
After inspecting the code found this:
void QDeclarativeMediaBase::setPosition(int position) { if (m_position == position) return; m_position = position; if (m_complete) m_playerControl->setPosition(m_position); else emit positionChanged(); }
Problem is solved when code is changed for this:
void QDeclarativeMediaBase::setPosition(int position) { if (!m_complete ? m_position : m_playerControl->position() == position) return; m_position = position; if (m_complete) m_playerControl->setPosition(m_position); else emit positionChanged(); }