diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-04-30 13:39:02 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-04-30 13:39:02 +0000 |
commit | 59aa6b3bdf03ee68d25e5b06d175866e7bcb5723 (patch) | |
tree | f16fddf8e1f594032bb649582a7afa323bb855f6 /Game | |
parent | 5428a88a83a1b8c1bb368db6a8a0719ed9f33d34 (diff) | |
download | usdx-59aa6b3bdf03ee68d25e5b06d175866e7bcb5723.tar.gz usdx-59aa6b3bdf03ee68d25e5b06d175866e7bcb5723.tar.xz usdx-59aa6b3bdf03ee68d25e5b06d175866e7bcb5723.zip |
Close a previously opened video before a new one is opened
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1044 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Classes/UVideo.pas | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Game/Code/Classes/UVideo.pas b/Game/Code/Classes/UVideo.pas index 17eb38d3..55f710f1 100644 --- a/Game/Code/Classes/UVideo.pas +++ b/Game/Code/Classes/UVideo.pas @@ -433,6 +433,10 @@ errnum {*i, x, y*}: Integer; // Auto Removed, Unused Variable (i) // Auto Remove begin
Result := false;
+ // close previously opened video
+ if (fVideoOpened) then
+ Close;
+
fVideoOpened := False;
fVideoPaused := False;
VideoTimeBase := 0;
|