mirror of https://github.com/odrling/Aegisub
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
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue