aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-04-18 18:04:52 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-04-18 18:04:52 +0000
commit7bf53987b4699ef418476dd9de8ee37bba53cba9 (patch)
tree36eef405ce7d8ed785703ed6d1e3a08a80fed2c0 /src
parentfc6bcba6ba551e8a8775b1474783d54fec439773 (diff)
downloadusdx-7bf53987b4699ef418476dd9de8ee37bba53cba9.tar.gz
usdx-7bf53987b4699ef418476dd9de8ee37bba53cba9.tar.xz
usdx-7bf53987b4699ef418476dd9de8ee37bba53cba9.zip
open ffmpeg video and audio files in shared mode. Crashed previously when a file was opened twice in read-only mode.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2248 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src')
-rw-r--r--src/media/UMediaCore_FFmpeg.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/media/UMediaCore_FFmpeg.pas b/src/media/UMediaCore_FFmpeg.pas
index b4951fe1..9eab7621 100644
--- a/src/media/UMediaCore_FFmpeg.pas
+++ b/src/media/UMediaCore_FFmpeg.pas
@@ -268,7 +268,7 @@ begin
else if ((flags and URL_WRONLY) <> 0) then
Mode := fmCreate // TODO: fmCreate is Read+Write -> reopen with fmOpenWrite
else
- Mode := fmOpenRead;
+ Mode := fmOpenRead or fmShareDenyWrite;
Result := 0;