aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-08-06 18:52:29 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-08-06 18:52:29 +0000
commitc9f0475aa950753f91fddf36f94d488e554d3757 (patch)
treed7ed74602e5e7374c5558cd287dc4711276bb666
parent71941e7a9cbf024036c1896e7bc954d78401bc2e (diff)
downloadusdx-c9f0475aa950753f91fddf36f94d488e554d3757.tar.gz
usdx-c9f0475aa950753f91fddf36f94d488e554d3757.tar.xz
usdx-c9f0475aa950753f91fddf36f94d488e554d3757.zip
avoid seeking if video is not initialized
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1223 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--Game/Code/Classes/UVideo.pas3
1 files changed, 3 insertions, 0 deletions
diff --git a/Game/Code/Classes/UVideo.pas b/Game/Code/Classes/UVideo.pas
index e03eb894..698fb2de 100644
--- a/Game/Code/Classes/UVideo.pas
+++ b/Game/Code/Classes/UVideo.pas
@@ -790,6 +790,9 @@ procedure TVideoPlayback_FFMpeg.SetPosition(Time: real);
var
SeekFlags: integer;
begin
+ if not fVideoOpened then
+ Exit;
+
if (Time < 0) then
Time := 0;