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:
Stephan Aßmus 2008-06-06 10:33:47 +00:00
parent 6d0505fffc
commit df13386015

View File

@ -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);