aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/UVideo.pas4
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;