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:
@@ -351,6 +351,8 @@ PlaybackManager::DurationChanged()
|
|||||||
void
|
void
|
||||||
PlaybackManager::SetCurrentFrame(int64 frame)
|
PlaybackManager::SetCurrentFrame(int64 frame)
|
||||||
{
|
{
|
||||||
|
if (_LastState()->current_frame == frame)
|
||||||
|
return;
|
||||||
PlayingState* newState = new PlayingState(*_LastState());
|
PlayingState* newState = new PlayingState(*_LastState());
|
||||||
newState->current_frame = frame;
|
newState->current_frame = frame;
|
||||||
_PushState(newState, false);
|
_PushState(newState, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user