Fix crash when framestepping caused by an incorrect option name.
Originally committed to SVN as r4461.
This commit is contained in:
parent
ae099a3363
commit
a12ec002c6
1 changed files with 2 additions and 2 deletions
|
@ -495,7 +495,7 @@ void VideoContext::PlayNextFrame() {
|
||||||
int thisFrame = frame_n;
|
int thisFrame = frame_n;
|
||||||
JumpToFrame(frame_n + 1);
|
JumpToFrame(frame_n + 1);
|
||||||
// Start playing audio
|
// Start playing audio
|
||||||
if (OPT_GET("Audio/Plays When Stepping")->GetBool())
|
if (OPT_GET("Audio/Plays When Stepping Video")->GetBool())
|
||||||
audio->Play(VFR_Output.GetTimeAtFrame(thisFrame),VFR_Output.GetTimeAtFrame(thisFrame + 1));
|
audio->Play(VFR_Output.GetTimeAtFrame(thisFrame),VFR_Output.GetTimeAtFrame(thisFrame + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -509,7 +509,7 @@ void VideoContext::PlayPrevFrame() {
|
||||||
int thisFrame = frame_n;
|
int thisFrame = frame_n;
|
||||||
JumpToFrame(frame_n -1);
|
JumpToFrame(frame_n -1);
|
||||||
// Start playing audio
|
// Start playing audio
|
||||||
if (OPT_GET("Audio/Plays When Stepping")->GetBool())
|
if (OPT_GET("Audio/Plays When Stepping Video")->GetBool())
|
||||||
audio->Play(VFR_Output.GetTimeAtFrame(thisFrame - 1),VFR_Output.GetTimeAtFrame(thisFrame));
|
audio->Play(VFR_Output.GetTimeAtFrame(thisFrame - 1),VFR_Output.GetTimeAtFrame(thisFrame));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue