From 7bf53987b4699ef418476dd9de8ee37bba53cba9 Mon Sep 17 00:00:00 2001 From: tobigun Date: Sun, 18 Apr 2010 18:04:52 +0000 Subject: 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 --- src/media/UMediaCore_FFmpeg.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3