This commit is contained in:
Frank Skare
2020-05-01 22:02:03 +02:00
parent 27d6026213
commit e1bd44cd00
3 changed files with 9 additions and 3 deletions

View File

@@ -17,6 +17,7 @@ Table of contents
* [Extensions](#extensions)
* [Color Theme](#color-theme)
* [Advanced Features](#advanced-features)
* [Hidden Features](#hidden-features)
* [Differences](#differences)
* [Technical Overview](#technical-overview)
* [Context Menu](#context-menu)
@@ -443,6 +444,8 @@ Whenever the control key is pressed when files or URLs are opened, the playlist
Pressing the shift key while opening a single file will suppress loading all files in the folder.
In fullscreen mode clicking the top right corner closes the player.
Differences
-----------

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.4.6")]
[assembly: AssemblyFileVersion("5.4.4.6")]
[assembly: AssemblyVersion("5.4.5.0")]
[assembly: AssemblyFileVersion("5.4.5.0")]

View File

@@ -219,7 +219,10 @@ public class libmpv
public static string ConvertFromUtf8(IntPtr nativeUtf8)
{
int len = 0;
while (Marshal.ReadByte(nativeUtf8, len) != 0) ++len;
while (Marshal.ReadByte(nativeUtf8, len) != 0)
++len;
byte[] buffer = new byte[len];
Marshal.Copy(nativeUtf8, buffer, 0, buffer.Length);
return Encoding.UTF8.GetString(buffer);