diff options
author | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-02-15 17:32:53 +0000 |
---|---|---|
committer | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-02-15 17:32:53 +0000 |
commit | 28eae548734d597d4722d9fb80c7082474533098 (patch) | |
tree | 2d0f31a832d769e5d88a21ca0a5a0a617b6462cc /src/media | |
parent | dc6d440ebb640d3639f6ea80c00e7ee985ec8279 (diff) | |
download | usdx-28eae548734d597d4722d9fb80c7082474533098.tar.gz usdx-28eae548734d597d4722d9fb80c7082474533098.tar.xz usdx-28eae548734d597d4722d9fb80c7082474533098.zip |
patch #2388324. Exit with corrupt videos. Courtesy to Hawkear
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1593 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/media')
-rw-r--r-- | src/media/UVideo.pas | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/media/UVideo.pas b/src/media/UVideo.pas index 197fc572..2d3b7620 100644 --- a/src/media/UVideo.pas +++ b/src/media/UVideo.pas @@ -532,8 +532,17 @@ begin end; // no error -> wait for user input - SDL_Delay(100); +{ + SDL_Delay(100); // initial version, left for documentation continue; +} + + // Patch by Hawkear: + // Why should this function loop in an endless loop if there is an error? + // This runs in the main thread, so it halts the whole program + // Therefore, it is better to exit when an error occurs + Exit; + end; // if we got a packet from the video stream, then decode it |