NextFrame and PrevFrame no longer requests out of range frames
Originally committed to SVN as r78.
This commit is contained in:
parent
38f62c6906
commit
e080a06834
1 changed files with 8 additions and 2 deletions
|
@ -125,6 +125,9 @@ int VideoSlider::GetXAtValue(int value) {
|
||||||
// Next frame hotkey
|
// Next frame hotkey
|
||||||
void VideoSlider::NextFrame() {
|
void VideoSlider::NextFrame() {
|
||||||
if (Display->IsPlaying) return;
|
if (Display->IsPlaying) return;
|
||||||
|
|
||||||
|
//don't request out of range frames
|
||||||
|
if (GetValue() < max)
|
||||||
Display->JumpToFrame(GetValue()+1);
|
Display->JumpToFrame(GetValue()+1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,6 +136,9 @@ void VideoSlider::NextFrame() {
|
||||||
// Previous frame hotkey
|
// Previous frame hotkey
|
||||||
void VideoSlider::PrevFrame() {
|
void VideoSlider::PrevFrame() {
|
||||||
if (Display->IsPlaying) return;
|
if (Display->IsPlaying) return;
|
||||||
|
|
||||||
|
//don't request out of range frames
|
||||||
|
if (GetValue() > min)
|
||||||
Display->JumpToFrame(GetValue()-1);
|
Display->JumpToFrame(GetValue()-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue