Do nothing if video is played with no video loaded rather than crashing
Originally committed to SVN as r5802.
This commit is contained in:
parent
402ba0e89d
commit
31a3b9aae0
1 changed files with 2 additions and 0 deletions
|
@ -362,6 +362,8 @@ void VideoContext::Play() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!IsLoaded()) return;
|
||||||
|
|
||||||
// Set variables
|
// Set variables
|
||||||
startFrame = frame_n;
|
startFrame = frame_n;
|
||||||
endFrame = -1;
|
endFrame = -1;
|
||||||
|
|
Loading…
Reference in a new issue