From d9c0d98f3240a21d0191721c86e0944c66af2f17 Mon Sep 17 00:00:00 2001 From: brunzelchen Date: Mon, 7 Dec 2009 16:50:21 +0000 Subject: 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 --- src/media/UVideo.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/media') 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)+')'); -- cgit v1.2.3