From a12ec002c63ed37281b6455de24c42b55d291508 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 8 Jun 2010 06:09:08 +0000 Subject: [PATCH] Fix crash when framestepping caused by an incorrect option name. Originally committed to SVN as r4461. --- aegisub/src/video_context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/video_context.cpp b/aegisub/src/video_context.cpp index 50fd8f1f1..233e8db59 100644 --- a/aegisub/src/video_context.cpp +++ b/aegisub/src/video_context.cpp @@ -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)); }