Do not insert a new playing state when seeking to the same frame. In the
end, this results in trying to decode the last frame again, which would the decoder to seek unnecessarily. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25820 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6d0505fffc
commit
df13386015
@ -351,6 +351,8 @@ PlaybackManager::DurationChanged()
|
||||
void
|
||||
PlaybackManager::SetCurrentFrame(int64 frame)
|
||||
{
|
||||
if (_LastState()->current_frame == frame)
|
||||
return;
|
||||
PlayingState* newState = new PlayingState(*_LastState());
|
||||
newState->current_frame = frame;
|
||||
_PushState(newState, false);
|
||||
|
Loading…
Reference in New Issue
Block a user