aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-07 16:50:21 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-07 16:50:21 +0000
commitd9c0d98f3240a21d0191721c86e0944c66af2f17 (patch)
tree0271c1ece38474ce523b021bda78795693592354
parentc5c8fd69256016ebd39f2de51cad9e35974bc703 (diff)
downloadusdx-d9c0d98f3240a21d0191721c86e0944c66af2f17.tar.gz
usdx-d9c0d98f3240a21d0191721c86e0944c66af2f17.tar.xz
usdx-d9c0d98f3240a21d0191721c86e0944c66af2f17.zip
fix: open video files with the system's native encoding and path delimiter.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2000 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--src/media/UVideo.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/media/UVideo.pas b/src/media/UVideo.pas
index 8d441e6c..3f25cdf7 100644
--- a/src/media/UVideo.pas
+++ b/src/media/UVideo.pas
@@ -263,7 +263,7 @@ begin
Reset();
// use custom 'ufile' protocol for UTF-8 support
- errnum := av_open_input_file(fFormatContext, PAnsiChar('ufile:'+FileName.ToUTF8), nil, 0, nil);
+ errnum := av_open_input_file(fFormatContext, PAnsiChar('ufile:'+FileName.ToNative), nil, 0, nil);
if (errnum <> 0) then
begin
Log.LogError('Failed to open file "'+ FileName.ToNative +'" ('+FFmpegCore.GetErrorString(errnum)+')');