From 31a3b9aae0dffecfcc6c52b884f9d3e21d201f25 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 29 Oct 2011 04:30:52 +0000 Subject: [PATCH] Do nothing if video is played with no video loaded rather than crashing Originally committed to SVN as r5802. --- aegisub/src/video_context.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aegisub/src/video_context.cpp b/aegisub/src/video_context.cpp index 421836807..79cb1c16e 100644 --- a/aegisub/src/video_context.cpp +++ b/aegisub/src/video_context.cpp @@ -362,6 +362,8 @@ void VideoContext::Play() { return; } + if (!IsLoaded()) return; + // Set variables startFrame = frame_n; endFrame = -1;