Fix crash when framestepping caused by an incorrect option name.

Originally committed to SVN as r4461.
This commit is contained in:
Thomas Goyne 2010-06-08 06:09:08 +00:00
parent ae099a3363
commit a12ec002c6
1 changed files with 2 additions and 2 deletions

View File

@ -495,7 +495,7 @@ void VideoContext::PlayNextFrame() {
int thisFrame = frame_n;
JumpToFrame(frame_n + 1);
// 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));
}
@ -509,7 +509,7 @@ void VideoContext::PlayPrevFrame() {
int thisFrame = frame_n;
JumpToFrame(frame_n -1);
// 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));
}