diff options
Diffstat (limited to '')
-rw-r--r-- | src/media/UVideo.pas | 2 |
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)+')'); |